Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glassechidna/ssmcfn
SSM Parameter Store custom resource for CloudFormation templates
https://github.com/glassechidna/ssmcfn
aws cloudformation lambda
Last synced: 10 days ago
JSON representation
SSM Parameter Store custom resource for CloudFormation templates
- Host: GitHub
- URL: https://github.com/glassechidna/ssmcfn
- Owner: glassechidna
- Created: 2017-03-12T08:32:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T23:18:39.000Z (over 6 years ago)
- Last Synced: 2024-07-16T04:23:01.640Z (6 months ago)
- Topics: aws, cloudformation, lambda
- Homepage:
- Size: 2.93 KB
- Stars: 52
- Watchers: 6
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSM Parameter Store helper for CloudFormation templates
You know what's lame? CloudFormation not (yet) having support for storing values
in [Parameter Store][aws-pstore]. You know what's less lame? [Lambda-backed custom resources][cfn-res]
so that we can polyfill this ourselves. Simply deploy [`cfn.yml`](cfn.yml) into
your AWS region and use like this:```yaml
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
SecretValue:
Description: Sssh, it's a secret
Type: String
NoEcho: true
Resources:
SecureParam:
Type: Custom::CfnParamStore
Properties:
ServiceToken: !ImportValue CfnParamStore
Type: SecureString
Value: !Ref SecretValue
Outputs:
ParamArn:
Description: Arn of param in SSM param store
Value: !GetAtt SecureParam.Arn
```Note that neither CloudFormation, Lambda nor Parameter Store are global resources,
so you will have to deploy the helper stack into each region
that you wish to use this in.[aws-pstore]: https://aws.amazon.com/ec2/systems-manager/parameter-store/
[cfn-res]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html