Convert AWS CloudFormation Resource Specification to OpenAPI 3.0.0
- run
sh download-and-preprocess-defs.sh
- run
npm install
- run
node index.js
output openapi3 specs (components/schemas
) are written to src/aws/v00.00.00000/services
- ensure the
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables are set - download the latest
stackql
binary, for examplecurl -L https://bit.ly/stackql-zip -O && unzip stackql-zip
for Linux systems - run the following:
PROVIDER_REGISTRY_ROOT_DIR="$(pwd)"
REG_STR='{"url": "file://'${PROVIDER_REGISTRY_ROOT_DIR}'", "localDocRoot": "'${PROVIDER_REGISTRY_ROOT_DIR}'", "verifyConfig": {"nopVerify": true}}'
./stackql shell --registry="${REG_STR}"
- run
stackql
commands, for example
select * from aws.s3.buckets WHERE region = 'us-east-1';
select bucket_name, region, bucket_encryption_server_side_encryption_configuration from aws.s3.bucket WHERE region = 'us-east-1' and data__Identifier = 'stackql-trial-bucket-01';
from the stackql-provider-tests
directory:
cd ../stackql-provider-tests
# aws
sh test-provider.sh \
aws \
false \
/mnt/c/LocalGitRepos/stackql/aws-cfn-schema-to-openapi \
true
Use the following script to generate user docs with Docusaurus front matter for AWS view resources:
node lib/utils/generate-docs.js
output markdown docs are written to aws-docs