GithubHelp home page GithubHelp logo

kunduso / ec2-userdata-terraform Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 21.0 99 KB

Create an Amazon EC2 instance and work with the `user_data` script. There are 9 different branches of the repository covering unique use cases.

License: The Unlicense

HCL 100.00%
amazon-ec2 iam-role ssm-parameter-store terraform amazon-ec2-userdata amazon-session-manager amazon-vpc-endpoint

ec2-userdata-terraform's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ec2-userdata-terraform's Issues

Convert `aws_iam_policy_attachement` to `aws_iam_role_policy_attachment`

This change is based on the warning message posted on the page: iam_policy_attachment

Warning: The aws_iam_policy_attachment resource creates exclusive attachments of IAM policies. Across the entire AWS account, all of the users/roles/groups to which a single policy is attached must be declared by a single aws_iam_policy_attachment resource. This means that even any users/roles/groups that have the attached policy via any other mechanism (including other Terraform resources) will have that attached policy revoked by this resource. Consider aws_iam_role_policy_attachment, aws_iam_user_policy_attachment, or aws_iam_group_policy_attachment instead. These resources do not enforce exclusive attachment of an IAM policy.

Create AWS Cloud resources to support RDP into Amazon EC2 for Windows without any `ingress` security group rule.

Using the "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" IAM policy it is possible to connect to an Amazon EC2 instance using Session Manager. However that gives a commandline interface. For a GUI based experience on an Amazon EC2 for Windows instance. this is can be accomplished using Fleet Manager.
The steps are:

  • continue on having the above managed policy attached to the IAM role to create the instance profile
  • create a new IAM policy and attach to the role as described in https://docs.aws.amazon.com/systems-manager/latest/userguide/fleet-rdp.html
  • create the security group with no ingress rule and open the egress for all ports on the tcp protocol
  • create a local user and add it to the Administrators group on the Windows instance using user data
  • login to the Amazon EC2 instance using Fleet Manager

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.