Skip to Content
Mobile DevOps
book

Mobile DevOps

by Rohin Tak, Jhalak Modi
March 2018
Intermediate to advanced content levelIntermediate to advanced
376 pages
7h 25m
English
Packt Publishing
Content preview from Mobile DevOps

Modifying instances

  1. To modify the instances, you need to make changes in main.tf. For example, I'm updating the elastic IP of the instance. The aws_eip module is used for allocation of elastic IPs:
resource "aws_eip" "ip" {  instance = "${aws_instance.testapp.id}"}
  1. Save the file and run the following commands again to make the changes in the instance:
$ terraform apply+ aws_eip.ip    allocation_id: "<computed>"    association_id: "<computed>"    domain: "<computed>"    instance: "${aws_instance.example.id}"    network_interface: "<computed>"    private_ip: "<computed>"    public_ip: "<computed>"

Type yes to accept the changes and see the changes using the AWS console, or run the terraform show command.

  1. Get the output by creating another output.tf file in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Modern DevOps

Implementing Modern DevOps

David Gonzalez, Danny Varghese
Java Security

Java Security

Scott Oaks

Publisher Resources

ISBN: 9781788296243Supplemental Content