terraform-aws-ec2-instance for project
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
module "main" {
source = "hadenlabs/ec2-instance/aws"
version = "0.1.0"
}
Full working examples can be found in examples folder.
module "main" {
source = "hadenlabs/ec2-instance/aws"
version = "0.1.0"
providers = {
aws = aws
}
ami = data.aws_ami.amazon_linux.id
public_key = var.public_key
private_key = var.private_key
}
module "tags" {
source = "hadenlabs/tags/null"
version = "0.1.1"
namespace = var.namespace
environment = var.environment
stage = var.stage
name = var.name
tags = var.tags
}
module "main" {
source = "hadenlabs/ec2-instance/aws"
version = "0.1.0"
providers = {
aws = aws
}
name = module.tags.name
ami = data.aws_ami.amazon_linux.id
tags = module.tags.tags
enabled_docker = var.enabled_docker
public_key = var.public_key
private_key = var.private_key
}
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >=3.2.0 |
null | >=0.1.0 |
Name | Version |
---|---|
aws | >=3.2.0 |
null | >=0.1.0 |
No modules.
Name | Type |
---|---|
aws_instance.this | resource |
aws_key_pair.this | resource |
aws_security_group.this | resource |
aws_security_group_rule.egress | resource |
aws_security_group_rule.ingress | resource |
null_resource.provision_core | resource |
null_resource.provision_docker | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ami | Id of ami of aws | string |
n/a | yes |
enabled_docker | enabled install docker | bool |
false |
no |
instance_type | type instance | string |
"t2.micro" |
no |
name | Solution name, e.g. 'app' or 'jenkins' | string |
n/a | yes |
private_key | private key | string |
n/a | yes |
public_key | public key | string |
n/a | yes |
rule_ingress | list rule for security group | list(object({ |
[] |
no |
ssh_port | port ssh | number |
22 |
no |
ssh_user | user ssh | string |
"ubuntu" |
no |
tags | Additional tags (e.g. map('BusinessUnit','XYZ') |
map(string) |
{} |
no |
Name | Description |
---|---|
aws_key_pair | key_pair of instance. |
instance | instance instance. |
private_ip | private ip. |
public_ip | public ip. |
Got a question?
File a GitHub issue.
Please use the issue tracker to report any bugs or file feature requests.
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
-
Fork the repo on GitHub
-
Clone the project to your own machine
-
Commit changes to your own branch
-
Push your work back up to your fork
-
Submit a Pull Request so that we can review your changes
NOTE: Be sure to rebase the latest changes from "upstream" before making a pull request!
This Module follows the principles of Semantic Versioning (SemVer).
Using the given version number of MAJOR.MINOR.PATCH
, we apply the following constructs:
- Use the
MAJOR
version for incompatible changes. - Use the
MINOR
version when adding functionality in a backwards compatible manner. - Use the
PATCH
version when introducing backwards compatible bug fixes.
- In the context of initial development, backwards compatibility in versions
0.0.z
is not guaranteed whenz
is increased. (Initial development) - In the context of pre-release, backwards compatibility in versions
0.y.z
is not guaranteed wheny
is increased. (Pre-release)
Copyright Β© 2018-2021 Hadenlabs
All other trademarks referenced herein are the property of their respective owners.
The code and styles are licensed under the LGPL-3.0 license See project license..