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
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
This is a terraform configuration for deploying a sample Rails application [mpon/rails-blog-example](https://github.com/mpon/rails-blog-example) in Fargate.
4
4
5
-
This repository is just an example, but we are aiming for a level that can be used even for production operations, and to complete the CI/CD only with AWS services.
5
+
This repository is just an example, but we are aiming for a level that can be used even for production operations, and to complete the CI/CD only with AWS services, also without using shell like `sed` to replace image tag.
6
6
7
-
You can use this example to try creating your own AWS infrastructure!
7
+
You can use this repository to try creating your own AWS infrastructure!
8
8
9
9
-[x] VPC
10
10
-[x] ECS on Fargate
@@ -46,19 +46,26 @@ You can use this example to try creating your own AWS infrastructure!
46
46
### 0. environments
47
47
48
48
```bash
49
-
# This example use ap-northeast-1 region
50
-
export REGION=ap-northeast-1
49
+
# You can set any region
50
+
export AWS_DEFAULT_REGION=ap-northeast-1
51
+
51
52
# S3 bucket to be used by Terraform remote backend
52
53
export TF_VAR_remote_backend=<your s3 bucket>
54
+
53
55
# GitHub personal token to be used by github provider
54
56
export GITHUB_TOKEN=***********************
57
+
58
+
# Configure aws-cli.
59
+
# We have not confirmed the minimum policy, it works AdministratorAccess at least.
60
+
# NOTE: In production environments, you have to reduce policy.
0 commit comments