1 Answer
- Newest
- Most votes
- Most comments
0
Hello picarda,
I recommend attempting the following fix for this issue:
1- Stop the instance
2- If using old view of AWS Console, go to Instance Settings -> View/Change user Data
If using new AWS Console view: Right click on your Stopped instance -> Instance Settings -> Edit User Data
3- Paste the following code in the option to Modify user data as text and Save
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
ufw disable
iptables -L
iptables -F
--//
4- Start your instance
Note: you may need to edit the public IP of the instance in the SSH command while connecting with cli to make sure you connect to the correct instance as that instance IP has likely changed
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 10 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago