diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 2935718..226f389 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -45,8 +45,9 @@ jobs: run: terraform apply -auto-approve -input=false - name: Deploy Project via Dispatcher + if: env.TF_WORKSPACE == 'prod' env: - DISPATCHER_EVENT: ${{env.TF_WORKSPACE == 'prod' && 'deploy-prod' || 'deploy-staging'}} + DISPATCHER_EVENT: 'deploy-prod' run: | curl -X POST https://api.github.com/repos/HideyoshiNakazone/infra-hideyoshi.com/dispatches \ -H 'Accept: application/vnd.github.everest-preview+json' \ diff --git a/instances/instance.tf b/instances/instance.tf index bf6c8c6..525e91e 100644 --- a/instances/instance.tf +++ b/instances/instance.tf @@ -72,7 +72,7 @@ resource "aws_security_group" "project_pool" { resource "aws_instance" "main" { ami = "ami-0af6e9042ea5a4e3e" - instance_type = "t3a.small" + instance_type = "t2.micro" vpc_security_group_ids = [ aws_security_group.project_pool.id ] key_name = aws_key_pair.ssh_key_main.key_name