Maciej Walkowiak 77dff95abc Autoconfigure `QueueMessagingTemplate` (#230) | 2 年之前 | |
---|---|---|
.. | ||
bin | 3 年之前 | |
lib | 3 年之前 | |
test | 3 年之前 | |
README.md | 3 年之前 | |
cdk.json | 3 年之前 | |
jest.config.js | 3 年之前 | |
package.json | 2 年之前 | |
tsconfig.json | 3 年之前 |
Infrastructure code to run Spring Cloud AWS SQS 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 SQS and another for cloudFormations. For sake of sample and simplicity we will use one.)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:DeleteMessage",
"sqs:GetQueueUrl",
"sqs:ReceiveMessage",
"sqs:SendMessage",
"sqs:GetQueueAttributes",
"sqs:DeleteQueue",
"sqs:CreateQueue",
"cloudformation:CreateChangeSet",
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:GetTemplate",
"cloudformation:DeleteStack",
"cloudformation:DescribeChangeSet",
"cloudformation:ExecuteChangeSet"
],
"Resource": "arn"
}
]
}