Restructure project layout and add ECR repository CloudFormation template
- Move application entrypoint to cmd/lambda/ - Move Dockerfile to docker/ for clearer build context separation - Promote go.mod/go.sum to project root - Move CloudFormation templates under infra/cfn/ for consistent infra layout - Add new template-container-repository.yaml defining ECR repository (blog-deployment) - Move Lambda test files to test/ directory
This commit is contained in:
parent
aa1f4a91bf
commit
0b67765510
11 changed files with 21 additions and 0 deletions
21
infra/cfn/template-container-repository.yaml
Normal file
21
infra/cfn/template-container-repository.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
AWSTemplateFormatVersion: "2010-09-09"
|
||||
|
||||
Parameters:
|
||||
RepositoryName:
|
||||
Type: String
|
||||
Default: blog-deployment
|
||||
|
||||
Resources:
|
||||
# ECR Repository
|
||||
Repository:
|
||||
Type: AWS::ECR::Repository
|
||||
DeletionPolicy: Retain
|
||||
Properties:
|
||||
RepositoryName: !Ref RepositoryName
|
||||
ImageScanningConfiguration:
|
||||
ScanOnPush: true
|
||||
|
||||
Outputs:
|
||||
RepositoryUri:
|
||||
Description: URI of the ECR repository
|
||||
Value: !GetAtt Repository.RepositoryUri
|
||||
Loading…
Add table
Add a link
Reference in a new issue