MatejNedic b01ae16049 Fix samples (#43) | 3 سال پیش | |
---|---|---|
.. | ||
bin | 3 سال پیش | |
lib | 3 سال پیش | |
README.md | 3 سال پیش | |
cdk.json | 3 سال پیش | |
jest.config.js | 3 سال پیش | |
package.json | 3 سال پیش | |
tsconfig.json | 3 سال پیش |
Infrastructure code to run Spring Cloud AWS Parameter Store Sample App based on AWS CDK
npm install
cdk synth
cdk deploy
Once you don't need the infrastructure anymore, it can be destroyed by calling:
cdk destroy
.You will need following policies to run cdk and Sample app: (Ideally this should be two different policies. One just for ssm and another for cloudFormations. For sake of sample and simplicity we will use one.)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ssm:PutParameter",
"ssm:DeleteParameter",
"ssm:GetParametersByPath",
"ssm:AddTagsToResource",
"cloudformation:DescribeStackEvents",
"cloudformation:GetTemplate",
"cloudformation:DeleteStack",
"cloudformation:CreateChangeSet",
"cloudformation:DescribeChangeSet",
"cloudformation:ExecuteChangeSet",
"cloudformation:DescribeStacks"
],
"Resource": "*"
}
]
}