We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb23ee commit ae26b0fCopy full SHA for ae26b0f
terraform/main.tf
@@ -1,11 +1,19 @@
1
+terraform {
2
+ backend "s3" {
3
+ bucket = "cadet-terraform-state"
4
+ key = "cadet-frontend.tfstate"
5
+ region = "ap-southeast-1"
6
+ encrypt = "true"
7
+ acl = "private"
8
+ }
9
+}
10
+
11
variable "bucket_name" {
12
default = "stg-cadet-frontend"
13
}
-variable "credentials-profile" {}
14
15
provider "aws" {
16
region = "ap-southeast-1"
- profile = "${var.credentials-profile}"
17
18
19
resource "aws_s3_bucket" "stg-site" {
@@ -33,6 +41,6 @@ resource "aws_s3_bucket" "stg-site" {
33
41
34
42
EOF
35
43
provisioner "local-exec" {
36
- command = "yarn build && ./sync-build.sh ${var.credentials-profile}"
44
+ command = "yarn build && ./sync-build.sh"
37
45
38
46
0 commit comments