- Newest
- Most votes
- Most comments
While your proposed approach for migrating from AWS Cloud9 to an EC2 instance is creative, there are some important considerations and limitations to be aware of:
-
AWS does not support cloning Cloud9 instances directly. The "Launch more like this" feature in EC2 does not actually clone instances, but rather replicates some configuration details. Creating an AMI from a Cloud9 instance is not a recommended or supported method.
-
Instead of cloning, AWS recommends migrating your development environment to either AWS IDE Toolkits or AWS CloudShell. These solutions offer similar capabilities for interacting with AWS resources without the need for Cloud9.
-
If you choose to proceed with creating an EC2 instance, you'll need to manually configure it to work similarly to your Cloud9 environment. This includes installing necessary software packages, setting up your development environment, and configuring AWS CLI and other tools.
-
Regarding your specific questions:
- IAM policies and instance profiles are not retained in AMIs. You'll need to manually attach the appropriate IAM role to your new EC2 instance.
- There's no need to disable the Cloud9 agent as it won't be present in a standard EC2 instance.
- Billing will be based on standard EC2 and EBS usage. There are no additional charges specific to this migration process.
- AWS doesn't provide official guidelines for migrating from Cloud9 to EC2 while preserving CDK deployment workflows. You'll need to ensure your new environment has the necessary tools and configurations for CDK deployments.
-
To maintain your CDK deployment workflows, ensure that you have the AWS CLI, Node.js, and the CDK toolkit installed on your new EC2 instance. You may need to reconfigure your AWS credentials and region settings.
-
Consider using AWS Systems Manager Session Manager for secure access to your EC2 instance without the need for opening inbound ports.
-
Remember to delete your Cloud9 EC2 instances once you've successfully migrated to avoid unnecessary costs.
While your proposed approach isn't directly supported, you can achieve a similar result by setting up a new EC2 instance with the necessary development tools and configurations. This will require more manual setup but will give you full control over your development environment.
Sources
Launch an EC2 instance using details from an existing instance - Amazon Elastic Compute Cloud
How to migrate from AWS Cloud9 to AWS IDE Toolkits or AWS CloudShell | AWS DevOps & Developer Productivity Blog
Working with environments in AWS Cloud9 - AWS Cloud9
Relevant content
- asked 3 years ago
- asked 4 years ago
- asked a year ago
