Remove spurious CI references for now

This commit is contained in:
Radon Rosborough 2021-09-13 21:43:12 -07:00
parent 820e3e2da0
commit a1815f8dd9
3 changed files with 23 additions and 14 deletions

View File

@ -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]
# }
# }

View File

@ -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 = [

View File

@ -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"