Skip to content

[getting-started] Add an example to create an EC2 instance with user-data script #127

@tungbq

Description

@tungbq

Create an ec2/user-data folder under https://github.com/tungbq/aws-lab-with-terraform/tree/main/getting-started.
Then add a terraform code to provision EC2 instance with t2.micro type (we can name it as main.tf)
Adding user data script on boot of EC2 instance, for example we could try to install mysql on the boot.

Reference:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions