Help me out: Use terraform, create the AWS EC2 instance and S3 Bucket.

506 views
Skip to first unread message

a a

unread,
Apr 28, 2017, 12:17:52 AM4/28/17
to Terraform

Use terraform, create the following resources in AWS

  • EC2 instance
  • S3 Bucket

By making use of userdata, echo some (ie ami-id, hostname etc) instance metadata to a file and copy that file to the s3 bucket.

Constraints:

  • Do not use the aws_instance resource provided by terraform, rather, make use of autoscaling groups
  • The terraform command should look as follows
    • Terraform apply –var "aws_access_key_id=<your access key>" –var "aws_secret_access_key=<your secret access key>"
  • Do not commit any aws credentials to source control of any kind.
  • The whole project should be contained within a single file called site.tf

Please guys help me on this.

Thank you in advance

Lowe Schmidt

unread,
Apr 28, 2017, 5:09:28 AM4/28/17
to terrafo...@googlegroups.com
This sounds very much like an exam or certification question.

Regardless, use the documentation it's right there on the homepage:

https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html



--
Lowe Schmidt | +46 723 867 157

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1375f45e-531a-49ae-a44f-f4a4c5ecdce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

varun malhotra

unread,
Nov 2, 2017, 3:52:34 PM11/2/17
to Terraform
Did you got the solution for this or not mate? Need any help?

nark...@gmail.com

unread,
Nov 23, 2017, 3:46:31 AM11/23/17
to Terraform
Does any one have the solution for this

ILANCHEZHIAN Durairaj

unread,
Sep 22, 2018, 6:12:45 PM9/22/18
to Terraform
Hi 

Were you able to find the solution ?

Thanks


On Friday, April 28, 2017 at 2:17:52 PM UTC+10, a a wrote:

Kumbam Cafe

unread,
Mar 20, 2019, 2:28:38 AM3/20/19
to Terraform
Dear i too have this issue, can you please post a resolution for this please.


On Friday, 3 November 2017 01:22:34 UTC+5:30, varun malhotra wrote:
Reply all
Reply to author
Forward
0 new messages