Editing Terraform resource: aws instance
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
Line 22: | Line 7: | ||
[[instance_type]] = "[[t3.micro]]" | [[instance_type]] = "[[t3.micro]]" | ||
− | + | tags = { | |
− | + | Name = "your_name_here" | |
} | } | ||
} | } | ||
Line 46: | Line 31: | ||
} | } | ||
− | + | == [[Terraform examples|Examples]] == | |
− | + | * [[AWS instance example with aws_ami lookup and key_name]]: <code>[[aws_instance]]</code>, <code>[[data.]][[aws_ami]]</code> | |
− | + | * [[AWS instance example with aws_ami lookup]]: <code>[[aws instance]]</code>, <code>[[aws_ami]]</code> | |
− | + | * [[AWS instance example: main.tf]]: <code>[[aws instance]]</code> | |
− | + | * [[AWS instance example creating VPC]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * [[ | ||
== aws_instance arguments == | == aws_instance arguments == | ||
Line 83: | Line 46: | ||
* <code>[[associate_public_ip_address]]</code> | * <code>[[associate_public_ip_address]]</code> | ||
* <code>[[subnet_id]], [[public_ip]]</code> | * <code>[[subnet_id]], [[public_ip]]</code> | ||
− | * <code> | + | * <code>[[vpc_security_group_ids]]</code>: (Optional, [[list]]) https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#vpc_security_group_ids |
* <code>[[root_block_device]]</code> | * <code>[[root_block_device]]</code> | ||
* <code>[[iops]]</code> | * <code>[[iops]]</code> | ||
− | * <code>[[iam_instance_profile]]</code> | + | * <code>[[iam_instance_profile]]</code> |
* <code>[[user_data]]</code> | * <code>[[user_data]]</code> | ||
* <code>[[credit_specification]]</code> | * <code>[[credit_specification]]</code> | ||
* <code>[[lifecycle]]</code> | * <code>[[lifecycle]]</code> | ||
* <code>[[tenancy]]</code> | * <code>[[tenancy]]</code> | ||
− | * <code>[[ | + | * <code>[[vpc_security_group_ids]]</code> |
== Related terms == | == Related terms == | ||
Line 100: | Line 63: | ||
* [[Terraform: Data sources]] | * [[Terraform: Data sources]] | ||
* <code>[[Terraform: VPCIdNotSpecified]]</code> | * <code>[[Terraform: VPCIdNotSpecified]]</code> | ||
− | * | + | * [[Terraform module: ec2-instance]] |
* [[Terraform resource]]: <code>[[Terraform resource: aws volume attachment|aws_volume_attachment]]</code> | * [[Terraform resource]]: <code>[[Terraform resource: aws volume attachment|aws_volume_attachment]]</code> | ||
* [[volume_size]] | * [[volume_size]] | ||
Line 106: | Line 69: | ||
* <code>[[aws_eip]]</code> | * <code>[[aws_eip]]</code> | ||
* <code>[[aws instance.your_instance_name will be updated in-place]]</code> | * <code>[[aws instance.your_instance_name will be updated in-place]]</code> | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* {{aws_instance}} | * {{aws_instance}} | ||
+ | * {{tf ec2}} | ||
+ | * {{terraform aws resources}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: