https://github.com/ytakahashi/cloudformation-macro-multiplex-resource
Macro for AWS cloudformation to create multiple resources.
https://github.com/ytakahashi/cloudformation-macro-multiplex-resource
aws-cloudformation cloudformation-macro cloudformation-template lambda-functions
Last synced: about 1 year ago
JSON representation
Macro for AWS cloudformation to create multiple resources.
- Host: GitHub
- URL: https://github.com/ytakahashi/cloudformation-macro-multiplex-resource
- Owner: ytakahashi
- License: mit
- Created: 2018-09-08T11:38:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-08T12:31:57.000Z (almost 8 years ago)
- Last Synced: 2025-02-09T22:19:19.375Z (over 1 year ago)
- Topics: aws-cloudformation, cloudformation-macro, cloudformation-template, lambda-functions
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudformation-macro-multiplex-resource
Macro for cloudformation to multiplex resources to be created by a cloudformation template.
## Getting started
### Create Lambda Function
```shell
git clone https://github.com/ytakahashi/cloudformation-macro-multiplex-resource.git
cd cloudformation-macro-multiplex-resource/macro
npm run package --s3-bucket
// or yarn package --s3-bucket
npm run deploy --stack-name
// or yarn deploy --stack-name
```
### Use Macro
#### Sample Template
```yaml
AWSTemplateFormatVersion: "2010-09-09"
Transform: [MultiplexResourceMacro]
Parameters:
NumberOfRepeats:
Type: Number
Default: 1
Resources:
Resource:
Type: AWS::SNS::Topic
Properties:
DisplayName: test topic
TopicName: TestTopic
```
#### Run
```shell
aws cloudformation deploy --template-file create-sns.yml --stack-name --parameter-overrides NumberOfRepeats=
```
### Supported Resource Type
- SNS (AWS::SNS::Topic)