-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
packaged.yml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# cfn-modules: MSK cluster example project | ||
|
||
This example project demonstrates how an EC2 instance can communicate with an RDS MySQL database. | ||
|
||
## Prerequisites | ||
|
||
1. [Install Node.js 10.x](https://nodejs.org/) | ||
2. Create an S3 bucket where [aws cloudformation package](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html) uploads the artifacts. | ||
1. Choose a unique bucket name, e.g. `BucketName=cfn-modules-$Name-$Region` | ||
2. Replace `$Name` with a unique name (e.g. your initials or company name) | ||
3. Replace `$Region` with your AWS default region (e.g. `us-east-1`) | ||
4. Create the bucket `aws s3 mb s3://$BucketName` | ||
|
||
## Usage | ||
|
||
``` | ||
npm i | ||
aws cloudformation package --template-file example.yml --s3-bucket $BucketName --output-template-file packaged.yml | ||
aws cloudformation deploy --template-file packaged.yml --stack-name msk-cluster-example --capabilities CAPABILITY_IAM | ||
``` | ||
|
||
Don't forget to delete the stack once you are done with the demo: | ||
|
||
``` | ||
aws cloudformation delete-stack --stack-name msk-cluster-example | ||
``` | ||
|
||
## Modules | ||
|
||
Find all modules here: https://www.npmjs.com/org/cfn-modules |