Remove spurious CI references for now
This commit is contained in:
parent
820e3e2da0
commit
a1815f8dd9
|
@ -6,3 +6,12 @@ data "aws_ami" "server" {
|
||||||
values = [data.external.env.result.AMI_NAME]
|
values = [data.external.env.result.AMI_NAME]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# data "aws_ami" "ci" {
|
||||||
|
# owners = ["self"]
|
||||||
|
|
||||||
|
# filter {
|
||||||
|
# name = "name"
|
||||||
|
# values = [data.external.env.result.CI_AMI_NAME]
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
16
tf/iam.tf
16
tf/iam.tf
|
@ -15,15 +15,15 @@ resource "aws_iam_access_key" "deploy" {
|
||||||
}
|
}
|
||||||
|
|
||||||
data "aws_iam_policy_document" "deploy" {
|
data "aws_iam_policy_document" "deploy" {
|
||||||
statement {
|
# statement {
|
||||||
actions = [
|
# actions = [
|
||||||
"ec2:RunInstances",
|
# "ec2:RunInstances",
|
||||||
]
|
# ]
|
||||||
|
|
||||||
resources = [
|
# resources = [
|
||||||
data.aws_ami.ci.arn,
|
# data.aws_ami.ci.arn,
|
||||||
]
|
# ]
|
||||||
}
|
# }
|
||||||
|
|
||||||
statement {
|
statement {
|
||||||
actions = [
|
actions = [
|
||||||
|
|
12
tf/ssm.tf
12
tf/ssm.tf
|
@ -5,12 +5,12 @@ resource "aws_ssm_parameter" "web_ami_id" {
|
||||||
data_type = "aws:ec2:image"
|
data_type = "aws:ec2:image"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_ssm_parameter" "ci_ami_id" {
|
# resource "aws_ssm_parameter" "ci_ami_id" {
|
||||||
name = "riju-ci-ami-id"
|
# name = "riju-ci-ami-id"
|
||||||
type = "String"
|
# type = "String"
|
||||||
value = data.aws_ami.ci.id
|
# value = data.aws_ami.ci.id
|
||||||
data_type = "aws:ec2:image"
|
# data_type = "aws:ec2:image"
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "aws_ssm_parameter" "docker_repo" {
|
resource "aws_ssm_parameter" "docker_repo" {
|
||||||
name = "riju-docker-repo-host"
|
name = "riju-docker-repo-host"
|
||||||
|
|
Loading…
Reference in New Issue