Commit c98a385 1 parent 95d8c1b commit c98a385 Copy full SHA for c98a385
File tree 6 files changed +29
-45
lines changed
6 files changed +29
-45
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
terraform_version : 1.5.3
25
25
26
- - name : Select workspace
27
- run : |
28
- ENVIRONMENT=${{ github.event.inputs.environment }}
29
- terraform workspace select "$ENVIRONMENT" || terraform workspace new "$ENVIRONMENT"
30
-
31
26
- name : Terraform Init and Apply
27
+ working-directory : terraform/environments/${{ github.event.inputs.environment }}
32
28
run : |
33
29
terraform init
34
30
terraform plan -out=tfplan
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ aws = {
4
+ source = " hashicorp/aws"
5
+ version = " 5.54.1"
6
+ }
7
+ }
8
+
9
+ cloud {
10
+ organization = " cholog"
11
+
12
+ workspaces {
13
+ name = " cholog-dev"
14
+ }
15
+ }
16
+ }
17
+
18
+ provider "aws" {
19
+ region = var. region
20
+
21
+ /* * Note: access_key와 secret_key는 환경변수를 통해 설정하면 된다.
22
+ export AWS_ACCESS_KEY_ID="your-access-key"
23
+ export AWS_SECRET_ACCESS_KEY="your-secret-key"
24
+ */
25
+ }
26
+
1
27
module "tags" {
2
28
source = " ../../modules/tags"
3
29
@@ -83,3 +109,5 @@ module "database" {
83
109
server_tags = module. tags . server_tags
84
110
database_tags = module. tags . database_tags
85
111
}
112
+
113
+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments