1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-08-24 20:08:55 +02:00

Build S3 trigger

This commit is contained in:
ebosas
2021-11-12 11:06:54 +02:00
parent b3cda9035d
commit 30b56001a9
3 changed files with 6 additions and 7 deletions

View File

@@ -37,15 +37,14 @@ Resources:
Statement:
# Allow codepipeline to put artifacts in the S3 bucket
# as well as get artifacts back out of it.
- Resource: "*"
# - !Sub arn:aws:s3:::${ArtifactBucket}/*
- Resource:
- !Sub arn:aws:s3:::${ArtifactBucket}/*
Effect: Allow
Action:
- s3:PutObject
- s3:GetObject
- s3:GetObjectVersion
- s3:GetBucketVersioning
- s3:*
# Allow codepipeline to build code builds
- Resource: "*"
Effect: Allow

View File

@@ -351,8 +351,8 @@ Resources:
Statement:
# Allow codepipeline to put artifacts in the S3 bucket
# as well as get artifacts back out of it.
- Resource:
- !Sub arn:aws:s3:::${ArtifactBucket}/*
- Resource: "*"
# - !Sub arn:aws:s3:::${ArtifactBucket}/*
Effect: Allow
Action:
- s3:PutObject

View File

@@ -116,7 +116,7 @@ Resources:
requestParameters:
bucketName: [!Ref ArtifactBucket]
key:
- !Sub imagedefinitions/${ServiceName}.json
- !Sub imagedefinitions/${ServiceName}.zip
detail-type: [AWS API Call via CloudTrail]
source: [aws.s3]
Targets:
@@ -175,7 +175,7 @@ Resources:
Provider: S3
Configuration:
S3Bucket: !Ref ArtifactBucket
S3ObjectKey: !Sub imagedefinitions/${ServiceName}.json
S3ObjectKey: !Sub imagedefinitions/${ServiceName}.zip
PollForSourceChanges: false
OutputArtifacts:
- Name: Image