Difference between revisions of "User data"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* <code>http://[[169.254.169.254]]/latest/user-data</code> | * <code>http://[[169.254.169.254]]/latest/user-data</code> | ||
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html | * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html | ||
− | + | * <code>[[/var/lib/cloud/instance/user-data.txt]]</code> | |
== See also == | == See also == |
Revision as of 13:02, 2 February 2023
user_data
(Optional) user data to provide when launching the instance, such as shell scripts.
- Notes: Do not pass gzip-compressed data via this argument; see
user_data_base64
instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If theuser_data_replace_on_change
is set then updates to this field will trigger a destroy and recreate
Related
aws_instance
templatefile, *.tftpl
key_name
http://169.254.169.254/latest/user-data
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
/var/lib/cloud/instance/user-data.txt
See also
- Terraform AWS:
aws_instance
:ami
,availability_zone
,instance_type
,key_name
,aws_key_pair
,monitoring
,associate_public_ip_address
,tenancy
,subnet_id, user_data, iam_instance_profile, vpc_security_group_ids, root_block_device, ebs_block_device
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: