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]
|
||||
}
|
||||
}
|
||||
|
||||
# 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" {
|
||||
statement {
|
||||
actions = [
|
||||
"ec2:RunInstances",
|
||||
]
|
||||
# statement {
|
||||
# actions = [
|
||||
# "ec2:RunInstances",
|
||||
# ]
|
||||
|
||||
resources = [
|
||||
data.aws_ami.ci.arn,
|
||||
]
|
||||
}
|
||||
# resources = [
|
||||
# data.aws_ami.ci.arn,
|
||||
# ]
|
||||
# }
|
||||
|
||||
statement {
|
||||
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"
|
||||
}
|
||||
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue