diff --git a/tf/ami.tf b/tf/ami.tf index 42894c5..786d29f 100644 --- a/tf/ami.tf +++ b/tf/ami.tf @@ -6,3 +6,12 @@ data "aws_ami" "server" { values = [data.external.env.result.AMI_NAME] } } + +# data "aws_ami" "ci" { +# owners = ["self"] + +# filter { +# name = "name" +# values = [data.external.env.result.CI_AMI_NAME] +# } +# } diff --git a/tf/iam.tf b/tf/iam.tf index 8b8e4d9..ef526e2 100644 --- a/tf/iam.tf +++ b/tf/iam.tf @@ -15,15 +15,15 @@ resource "aws_iam_access_key" "deploy" { } data "aws_iam_policy_document" "deploy" { - statement { - actions = [ - "ec2:RunInstances", - ] + # statement { + # actions = [ + # "ec2:RunInstances", + # ] - resources = [ - data.aws_ami.ci.arn, - ] - } + # resources = [ + # data.aws_ami.ci.arn, + # ] + # } statement { actions = [ diff --git a/tf/ssm.tf b/tf/ssm.tf index 7aa5675..2dda2e9 100644 --- a/tf/ssm.tf +++ b/tf/ssm.tf @@ -5,12 +5,12 @@ resource "aws_ssm_parameter" "web_ami_id" { data_type = "aws:ec2:image" } -resource "aws_ssm_parameter" "ci_ami_id" { - name = "riju-ci-ami-id" - type = "String" - value = data.aws_ami.ci.id - data_type = "aws:ec2:image" -} +# resource "aws_ssm_parameter" "ci_ami_id" { +# name = "riju-ci-ami-id" +# type = "String" +# value = data.aws_ami.ci.id +# data_type = "aws:ec2:image" +# } resource "aws_ssm_parameter" "docker_repo" { name = "riju-docker-repo-host"