Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate NAT instances to Amazon Linux 2 #157

Merged
merged 6 commits into from
Feb 14, 2024
Merged

Conversation

karwer
Copy link
Contributor

@karwer karwer commented Feb 8, 2024

No description provided.

@karwer karwer changed the title Migrate to NAT instances to Amazon Linux 2 Migrate NAT instances to Amazon Linux 2 Feb 8, 2024
@karwer karwer requested a review from mskrajnowski February 8, 2024 17:02
Comment on lines 1 to 24
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0

--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"

#cloud-config
cloud_final_modules:
- [scripts-user, always]

--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"

#!/bin/bash
/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -t nat -A POSTROUTING -s ${vpc_cidr} -j MASQUERADE
--//--

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use template_cloudinit_config to make this more readable

ecs/network/main.tf Outdated Show resolved Hide resolved
@karwer karwer merged commit 8796045 into master Feb 14, 2024
14 checks passed
@karwer karwer deleted the feature/migrate-nat-to-amzn2 branch February 14, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants