Skip to content

Commit

Permalink
fix(ecr): incorrect format for rule pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Feb 24, 2024
1 parent f0af5b1 commit 7cb2c27
Show file tree
Hide file tree
Showing 11 changed files with 353 additions and 13 deletions.

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
Expand Up @@ -73,6 +73,90 @@
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"RepoOnEvent13B6ADDB": {
"Type": "AWS::ECR::Repository",
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"RepoOnEventOnEventTargetLambda2934FA99": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"source": [
"aws.ecr"
],
"detail": {
"repository-name": [
{
"Ref": "RepoOnEvent13B6ADDB"
}
]
}
},
"State": "ENABLED",
"Targets": [
{
"Arn": {
"Fn::GetAtt": [
"LambdaFunctionBF21E41F",
"Arn"
]
},
"Id": "OnEventTargetLambda"
}
]
}
},
"LambdaFunctionServiceRoleC555A460": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]
]
}
]
}
},
"LambdaFunctionBF21E41F": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"ZipFile": "# dummy func"
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"LambdaFunctionServiceRoleC555A460",
"Arn"
]
},
"Runtime": "python3.12"
},
"DependsOn": [
"LambdaFunctionServiceRoleC555A460"
]
}
},
"Outputs": {
Expand Down

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.

Loading

0 comments on commit 7cb2c27

Please sign in to comment.