Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added lambda with sqs event source map #1

Merged
merged 12 commits into from
Nov 3, 2024
Merged

added lambda with sqs event source map #1

merged 12 commits into from
Nov 3, 2024

Conversation

kcalixto
Copy link
Owner

@kcalixto kcalixto commented Nov 1, 2024

No description provided.

Copy link

github-actions bot commented Nov 3, 2024

start: Building 518adc574b59792130c88251dd969536a6384628bbf02dd961f510823be219ce:664960032265-us-east-1
success: Built 518adc574b59792130c88251dd969536a6384628bbf02dd961f510823be219ce:664960032265-us-east-1
start: Publishing 518adc574b59792130c88251dd969536a6384628bbf02dd961f510823be219ce:664960032265-us-east-1
success: Published 518adc574b59792130c88251dd969536a6384628bbf02dd961f510823be219ce:664960032265-us-east-1
Hold on while we create a read-only change set to get a diff with accurate replacement information (use --no-change-set to use a less accurate but faster template-only diff)
Stack go-cdk-sample-cloudformation
IAM Statement Changes
┌───┬───────────────────────────────────────────────┬────────┬─────────────────────────────┬───────────────────────────────────────────────┬───────────┐
│   │ Resource                                      │ Effect │ Action                      │ Principal                                     │ Condition │
├───┼───────────────────────────────────────────────┼────────┼─────────────────────────────┼───────────────────────────────────────────────┼───────────┤
│ + │ ${cdk-go-sample-function/ServiceRole.Arn}     │ Allow  │ sts:AssumeRole              │ Service:lambda.amazonaws.com                  │           │
├───┼───────────────────────────────────────────────┼────────┼─────────────────────────────┼───────────────────────────────────────────────┼───────────┤
│ + │ ${cdk-go-sample-function-dlq/ServiceRole.Arn} │ Allow  │ sts:AssumeRole              │ Service:lambda.amazonaws.com                  │           │
├───┼───────────────────────────────────────────────┼────────┼─────────────────────────────┼───────────────────────────────────────────────┼───────────┤
│ + │ ${cdk-go-sample-queue.Arn}                    │ Allow  │ sqs:ChangeMessageVisibility │ AWS:${cdk-go-sample-function/ServiceRole}     │           │
│   │                                               │        │ sqs:DeleteMessage           │                                               │           │
│   │                                               │        │ sqs:GetQueueAttributes      │                                               │           │
│   │                                               │        │ sqs:GetQueueUrl             │                                               │           │
│   │                                               │        │ sqs:ReceiveMessage          │                                               │           │
├───┼───────────────────────────────────────────────┼────────┼─────────────────────────────┼───────────────────────────────────────────────┼───────────┤
│ + │ ${cdk-go-sample-queue-dlq.Arn}                │ Allow  │ sqs:ChangeMessageVisibility │ AWS:${cdk-go-sample-function-dlq/ServiceRole} │           │
│   │                                               │        │ sqs:DeleteMessage           │                                               │           │
│   │                                               │        │ sqs:GetQueueAttributes      │                                               │           │
│   │                                               │        │ sqs:GetQueueUrl             │                                               │           │
│   │                                               │        │ sqs:ReceiveMessage          │                                               │           │
└───┴───────────────────────────────────────────────┴────────┴─────────────────────────────┴───────────────────────────────────────────────┴───────────┘
IAM Policy Changes
┌───┬───────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────┐
│   │ Resource                                  │ Managed Policy ARN                                                             │
├───┼───────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
│ + │ ${cdk-go-sample-function/ServiceRole}     │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
├───┼───────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
│ + │ ${cdk-go-sample-function-dlq/ServiceRole} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
└───┴───────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────┘
(NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299)

Resources
[+] AWS::SQS::Queue cdk-go-sample-queue-dlq cdkgosamplequeuedlqAC77680E 
[+] AWS::IAM::Role cdk-go-sample-function/ServiceRole cdkgosamplefunctionServiceRoleE83F7B13 
[+] AWS::IAM::Policy cdk-go-sample-function/ServiceRole/DefaultPolicy cdkgosamplefunctionServiceRoleDefaultPolicy3B1C122E 
[+] AWS::Lambda::Function cdk-go-sample-function cdkgosamplefunctionDCBE7D56 
[+] AWS::Lambda::EventSourceMapping cdk-go-sample-function/SqsEventSource:gocdksamplecloudformationcdkgosamplequeue73C92580 cdkgosamplefunctionSqsEventSourcegocdksamplecloudformationcdkgosamplequeue73C92580BE147B93 
[+] AWS::IAM::Role cdk-go-sample-function-dlq/ServiceRole cdkgosamplefunctiondlqServiceRole956A995B 
[+] AWS::IAM::Policy cdk-go-sample-function-dlq/ServiceRole/DefaultPolicy cdkgosamplefunctiondlqServiceRoleDefaultPolicyB6E94BAE 
[+] AWS::Lambda::Function cdk-go-sample-function-dlq cdkgosamplefunctiondlq953F4053 
[+] AWS::Lambda::EventSourceMapping cdk-go-sample-function-dlq/SqsEventSource:gocdksamplecloudformationcdkgosamplequeuedlq9E9D265A cdkgosamplefunctiondlqSqsEventSourcegocdksamplecloudformationcdkgosamplequeuedlq9E9D265A47E0CF7C 
[~] AWS::SQS::Queue cdk-go-sample-queue cdkgosamplequeue1E4B48BB 
 └─ [+] RedrivePolicy
     └─ {"deadLetterTargetArn":{"Fn::GetAtt":["cdkgosamplequeuedlqAC77680E","Arn"]},"maxReceiveCount":3}


✨  Number of stacks with differences: 1

Repository owner deleted a comment from github-actions bot Nov 3, 2024
@kcalixto kcalixto merged commit 5bb08b9 into main Nov 3, 2024
2 checks passed
@kcalixto kcalixto deleted the feat/sqs-lambda branch November 3, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant