47 lines
819 B
Markdown
47 lines
819 B
Markdown
# Module docker-instance
|
|
|
|
This Terraform module start an AWS instance in default VPC.
|
|
Instance is build from latest Amazon Linux 2023 minimal AMI, with
|
|
EC2 Instance Connect and Docker installed at first boot.
|
|
|
|
## How to connect with SSH
|
|
|
|
```bash
|
|
aws ec2-instance-connect send-ssh-public-key \
|
|
--instance-id ${INSTANCE_ID} \
|
|
--availability-zone ${AVAILABILITY_ZONE} \
|
|
--instance-os-user ec2-user \
|
|
--ssh-public-key file://${PATH_TO_PUBLIC_KEY}
|
|
|
|
ssh -o "IdentitiesOnly=yes" -i ${PATH_TO_PUBLIC_KEY} ec2-user@${INSTANCE_PUBLIC_IP}
|
|
```
|
|
|
|
* workflows / actions (.tf format and validate)
|
|
* git hooks
|
|
|
|
<!-- BEGIN_TF_DOCS -->
|
|
## Requirements
|
|
|
|
No requirements.
|
|
|
|
## Providers
|
|
|
|
No providers.
|
|
|
|
## Modules
|
|
|
|
No modules.
|
|
|
|
## Resources
|
|
|
|
No resources.
|
|
|
|
## Inputs
|
|
|
|
No inputs.
|
|
|
|
## Outputs
|
|
|
|
No outputs.
|
|
<!-- END_TF_DOCS -->
|