You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-22Lines changed: 0 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,28 +115,6 @@ Initialize your `Terraform` config:
115
115
116
116
The `make init` command will also create an [ECR](https://aws.amazon.com/ecr/) repository. Before going further you have to build and publish the lambda docker image. Unfortunately AWS doesn't allow to use a public image, so you have to host this one on a private ECR instance. Copy the output of the `init` command, you will use them in the next step.
117
117
118
-
#### Build and publish the lambda image
119
-
120
-
For this step, we cooked a script to help you build, tag and deploy images. All the scripts are run from the marsha root directory.
121
-
122
-
🔧 **Before you go further**, you need to create `./env.d/lambda` and replace the relevant values with your own. The `ECR` url is available in the `shared_resources` terraform output you copied earlier. You should use this command to create the file from the existing model:
123
-
124
-
$ cp ./env.d/lambda.dist ./env.d/lambda
125
-
126
-
You have to successively run these commands :
127
-
128
-
Build the image:
129
-
130
-
$ ./bin/lambda build
131
-
132
-
Tag the image:
133
-
134
-
$ ./bin/lambda tag
135
-
136
-
And then publish it:
137
-
138
-
$ ./bin/lambda publish
139
-
140
118
#### Apply all terraform plans
141
119
142
120
Terraform is split in two parts. The main one, directly in `src/aws` can work on multiple [`Terraform` workspaces](https://www.terraform.io/docs/state/workspaces.html). You will use this feature if you want separate environments (development, staging, preprod and production). We also need some resources available across all workspaces. For this we have an other terraform in `src/aws/shared_resources`.
0 commit comments