Skip to content

Commit

Permalink
update tf
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Aug 26, 2024
1 parent e7d009f commit 40cb85e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
28 changes: 15 additions & 13 deletions deploy/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions deploy/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ resource "aws_iam_policy" "write_ssm_logs" {

resource "aws_ssm_association" "web" {
association_name = "web"

name = module.ssm_documents.nixos_deploy.name
document_version = module.ssm_documents.nixos_deploy.version

parameters = {
installable = var.installable
action = "switch"
Expand All @@ -89,12 +92,14 @@ resource "aws_ssm_association" "web" {
key = "tag:Name"
values = ["web"]
}
schedule_expression = "rate(30 minutes)"

output_location {
s3_bucket_name = aws_s3_bucket.ssm_logs.bucket
s3_key_prefix = "web"
}

lifecycle {
ignore_changes = [ parameters.installable ]
}
}

resource "aws_instance" "web_push" {
Expand Down

0 comments on commit 40cb85e

Please sign in to comment.