Skip to content

Commit

Permalink
fixed ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
y-miyazaki committed Jun 7, 2023
1 parent 47cc190 commit 44bfcf7
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/terraform/integration_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "#--------------------------------------------------------------"
echo "# terraform init ($PWD)"
echo "#--------------------------------------------------------------"
# terraform init -reconfigure -backend-config=terraform."${ENV}".tfbackend
# terraform init
terraform init
echo "#--------------------------------------------------------------"
echo "# tflint ($PWD)"
echo "#--------------------------------------------------------------"
Expand Down
37 changes: 37 additions & 0 deletions terraform/base/main_provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#--------------------------------------------------------------
# Terraform Provider
#--------------------------------------------------------------
terraform {
required_version = "~>1.4"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>4.67.0"
}
}
# backend "s3" {
# }
}

#--------------------------------------------------------------
# AWS Provider
# access key and secret key should not use.
#--------------------------------------------------------------
provider "aws" {
# TODO: need to change profile.
profile = "default"
# TODO: need to change region.
region = "ap-northeast-1"
# default_tags {
# tags = var.tags
# }
}
# Need to add aws provider(us-east-1) for CloudFront Metric.
provider "aws" {
profile = "default"
region = "us-east-1"
alias = "us-east-1"
# default_tags {
# tags = var.tags
# }
}
36 changes: 36 additions & 0 deletions terraform/monitor/main_provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#--------------------------------------------------------------
# Terraform Provider
#--------------------------------------------------------------
terraform {
required_version = "~>1.4"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>4.67.0"
}
}
# backend "s3" {
# }
}

#--------------------------------------------------------------
# AWS Provider
# access key and secret key should not use.
#--------------------------------------------------------------
provider "aws" {
# TODO: need to change profile.
profile = "default"
# TODO: need to change region.
region = "ap-northeast-1"
# default_tags {
# tags = var.tags
# }
}
# Need to add aws provider(us-east-1) for CloudFront Metric.
provider "aws" {
region = "us-east-1"
alias = "us-east-1"
# default_tags {
# tags = var.tags
# }
}

0 comments on commit 44bfcf7

Please sign in to comment.