We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ce16e commit 49cdf6bCopy full SHA for 49cdf6b
terraform-db-migration/locals.tf
@@ -175,5 +175,9 @@ locals {
175
key_name = "eatda-prod-jump-key"
176
instance_type = "t3a.small"
177
ami_id = "ami-012ea6058806ff688"
178
+ user_data = <<-EOT
179
+#!/bin/bash
180
+echo ECS_CLUSTER=prod-cluster >> /etc/ecs/ecs.config
181
+EOT
182
}
183
terraform-db-migration/main.tf
@@ -170,6 +170,7 @@ resource "aws_instance" "jump_host" {
170
171
vpc_security_group_ids = [module.migration_sg.security_group_ids["jump-host"]]
172
associate_public_ip_address = true
173
+ user_data = local.jump_host.user_data
174
tags = {
Name = "eatda-jump-host-for-migration"
0 commit comments