- enable EventBridge notifications on source S3 bucket - trigger CodePipeline execution on source.zip updates - fix artifact bucket ARN substitutions - extend CodePipeline role permissions for S3, CodeBuild, and approvals - allow Lambda to pull images from ECR via repository policy - export ECR repository URI and reference it from Lambda
22 lines
552 B
YAML
22 lines
552 B
YAML
AWSTemplateFormatVersion: '2010-09-09'
|
|
|
|
Parameters:
|
|
BucketName:
|
|
Type: String
|
|
Description: "The name for the S3 bucket to be used for public website hosting (must be globally unique)"
|
|
Default: "naputo-blog-source"
|
|
|
|
Resources:
|
|
|
|
SourceBucket:
|
|
Type: AWS::S3::Bucket
|
|
Properties:
|
|
BucketName: !Ref BucketName
|
|
Tags:
|
|
- Key: Project
|
|
Value: Git-server
|
|
VersioningConfiguration:
|
|
Status: Enabled
|
|
NotificationConfiguration:
|
|
EventBridgeConfiguration:
|
|
EventBridgeEnabled: true
|