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:
|
Statement:
|
||||||
# Allow codepipeline to put artifacts in the S3 bucket
|
# Allow codepipeline to put artifacts in the S3 bucket
|
||||||
# as well as get artifacts back out of it.
|
# as well as get artifacts back out of it.
|
||||||
- Resource: "*"
|
- Resource:
|
||||||
# - !Sub arn:aws:s3:::${ArtifactBucket}/*
|
- !Sub arn:aws:s3:::${ArtifactBucket}/*
|
||||||
Effect: Allow
|
Effect: Allow
|
||||||
Action:
|
Action:
|
||||||
- s3:PutObject
|
- s3:PutObject
|
||||||
- s3:GetObject
|
- s3:GetObject
|
||||||
- s3:GetObjectVersion
|
- s3:GetObjectVersion
|
||||||
- s3:GetBucketVersioning
|
- s3:GetBucketVersioning
|
||||||
- s3:*
|
|
||||||
# Allow codepipeline to build code builds
|
# Allow codepipeline to build code builds
|
||||||
- Resource: "*"
|
- Resource: "*"
|
||||||
Effect: Allow
|
Effect: Allow
|
||||||
|
@@ -351,8 +351,8 @@ Resources:
|
|||||||
Statement:
|
Statement:
|
||||||
# Allow codepipeline to put artifacts in the S3 bucket
|
# Allow codepipeline to put artifacts in the S3 bucket
|
||||||
# as well as get artifacts back out of it.
|
# as well as get artifacts back out of it.
|
||||||
- Resource:
|
- Resource: "*"
|
||||||
- !Sub arn:aws:s3:::${ArtifactBucket}/*
|
# - !Sub arn:aws:s3:::${ArtifactBucket}/*
|
||||||
Effect: Allow
|
Effect: Allow
|
||||||
Action:
|
Action:
|
||||||
- s3:PutObject
|
- s3:PutObject
|
||||||
|
@@ -116,7 +116,7 @@ Resources:
|
|||||||
requestParameters:
|
requestParameters:
|
||||||
bucketName: [!Ref ArtifactBucket]
|
bucketName: [!Ref ArtifactBucket]
|
||||||
key:
|
key:
|
||||||
- !Sub imagedefinitions/${ServiceName}.json
|
- !Sub imagedefinitions/${ServiceName}.zip
|
||||||
detail-type: [AWS API Call via CloudTrail]
|
detail-type: [AWS API Call via CloudTrail]
|
||||||
source: [aws.s3]
|
source: [aws.s3]
|
||||||
Targets:
|
Targets:
|
||||||
@@ -175,7 +175,7 @@ Resources:
|
|||||||
Provider: S3
|
Provider: S3
|
||||||
Configuration:
|
Configuration:
|
||||||
S3Bucket: !Ref ArtifactBucket
|
S3Bucket: !Ref ArtifactBucket
|
||||||
S3ObjectKey: !Sub imagedefinitions/${ServiceName}.json
|
S3ObjectKey: !Sub imagedefinitions/${ServiceName}.zip
|
||||||
PollForSourceChanges: false
|
PollForSourceChanges: false
|
||||||
OutputArtifacts:
|
OutputArtifacts:
|
||||||
- Name: Image
|
- Name: Image
|
||||||
|
Reference in New Issue
Block a user