MatejNedic b01ae16049 Fix samples (#43) 3 年 前
..
bin b01ae16049 Fix samples (#43) 3 年 前
lib b01ae16049 Fix samples (#43) 3 年 前
test b01ae16049 Fix samples (#43) 3 年 前
README.md 0cb7df05a1 Add SQS sample (#18) 3 年 前
cdk.json b01ae16049 Fix samples (#43) 3 年 前
jest.config.js 0cb7df05a1 Add SQS sample (#18) 3 年 前
package.json b01ae16049 Fix samples (#43) 3 年 前
tsconfig.json 0cb7df05a1 Add SQS sample (#18) 3 年 前

README.md

Spring Cloud AWS SQS Sample App Infrastructure

Infrastructure code to run Spring Cloud AWS SQS Sample App based on AWS CDK

How to install

  • npm install

How to run

  • 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"
    }
]

}