Comments (3)
As there's still no way to output the ApiKey.Value
in the template, here's a helper in the Outputs
section of the template that will build out the CLI command needed to retrieve the key.
# Helper References
CLIApiKey:
Description: CLI command to get the api key value.
Value: !Sub "aws apigateway get-api-key --api-key ${ApiGatewayKey.APIKeyId} --include-value --query \"value\" --output text"
Replace ApiGatewayKey
with whatever your logical resource name is for the AWS::ApiGateway::ApiKey
resource.
The resulting output will be (obviously your key id will be different):
Key CLIApiKey
Description CLI command to get the api key value.
Value aws apigateway get-api-key --api-key hj1t5lmck3 --include-value --query "value" --output text
from aws-cloudformation-templates.
@aprilmintacpineda any news form support on this?
from aws-cloudformation-templates.
FYI, as a workaround I use aws cli to get the api key form cloudfront once deployed:
https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-api-keys.html
from aws-cloudformation-templates.
Related Issues (20)
- S3 CloudFront Template Fails To Deploy
- CloudFormation-EKS HOT 2
- Update python version for boto3 macro HOT 2
- cfnresponse.py setting physical ID to log's ID when not provided
- cfnresponse.py squelching errors HOT 1
- New repos
- DAY01
- ServiceCatalog Product.yaml fails validation
- cfnresponse.py helper does not accept "Reason" parameter HOT 1
- Easy_Install command not found for RHEL 8 HOT 1
- Macro Transform LanguageExtensions not working HOT 1
- CloudFormation Macros Examples for .../Public-and-Private-Subnet-per-AZ/Create-Macro.yaml uses deprecated Lambda runtime. HOT 1
- SSH to EC2 in private vpc? HOT 3
- Incorrect reference to `/opt/aws/` HOT 2
- T4 instance group not working on ECS template HOT 1
- AWS::ApiGateway::Method Integration Uri incorrect parameter problem. HOT 1
- MacrosExamples - ExecutionRoleBuilder update and typo HOT 2
- cfn-hup in daemon mode doesn't work on any currently supported Python version, because of dependency on obsolete python-daemon version HOT 8
- AmazonCloudWatchAgent templates are outdated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cloudformation-templates.