You've already forked microservices
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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user