1
- # ## This is the Terraform-generated header for wcd2reshare-dev ###
1
+ # ## This is the Terraform-generated header for wcd2reshare-dev. If ###
2
+ # ## this is a Lambda repo, uncomment the FUNCTION line below ###
3
+ # ## and review the other commented lines in the document. ###
2
4
ECR_NAME_DEV: =wcd2reshare-dev
3
5
ECR_URL_DEV: =222053980223.dkr.ecr.us-east-1.amazonaws.com/wcd2reshare-dev
4
6
FUNCTION_DEV: =wcd2reshare-dev
5
- # ## End of Terraform-generated header ###
7
+ # ## End of Terraform-generated header ###
6
8
7
9
# ## Dependency commands ###
8
10
install : # # Install dependencies
@@ -51,14 +53,16 @@ publish-dev: dist-dev ## Build, tag and push (intended for developer-based manua
51
53
docker push $(ECR_URL_DEV ) :latest
52
54
docker push $(ECR_URL_DEV ) :` git describe --always`
53
55
56
+ # ## If this is a Lambda repo, uncomment the two lines below ###
54
57
update-lambda-dev : # # Updates the lambda with whatever is the most recent image in the ecr (intended for developer-based manual update)
55
58
aws lambda update-function-code --function-name $(FUNCTION_DEV ) --image-uri $(ECR_URL_DEV ) :latest
56
59
57
60
58
- # ## Terraform-generated manual shortcuts for deploying to Stage ###
59
- # ## This requires that ECR_NAME_STAGE, ECR_URL_STAGE, and FUNCTION_STAGE environment variables are
60
- # ## set locally by the developer and that the developer has authenticated to the correct AWS Account.
61
- # ## The values for the environment variables can be found in the stage_build.yml caller workflow.
61
+ # ## Terraform-generated manual shortcuts for deploying to Stage. This requires ###
62
+ # ## that ECR_NAME_STAGE, ECR_URL_STAGE, and FUNCTION_STAGE environment ###
63
+ # ## variables are set locally by the developer and that the developer has ###
64
+ # ## authenticated to the correct AWS Account. The values for the environment ###
65
+ # ## variables can be found in the stage_build.yml caller workflow. ###
62
66
dist-stage : # # Only use in an emergency
63
67
docker build --platform linux/amd64 \
64
68
-t $(ECR_URL_STAGE ) :latest \
@@ -70,5 +74,6 @@ publish-stage: ## Only use in an emergency
70
74
docker push $(ECR_URL_STAGE ) :latest
71
75
docker push $(ECR_URL_STAGE ) :` git describe --always`
72
76
77
+ # ## If this is a Lambda repo, uncomment the two lines below ###
73
78
update-lambda-stage : # # Updates the lambda with whatever is the most recent image in the ecr (intended for developer-based manual update)
74
79
aws lambda update-function-code --function-name $(FUNCTION_STAGE ) --image-uri $(ECR_URL_STAGE ) :latest
0 commit comments