Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWSインフラ構築ツールとしてのTerraform / SpeeeKaigi

AWSインフラ構築ツールとしてのTerraform / SpeeeKaigi

SpeeeKaigiで話しました

yuma iwasaki

August 08, 2016
Tweet

More Decks by yuma iwasaki

Other Decks in Programming

Transcript

  1. resource "Profile" "Yuma Iwasaki" { company = "Speee Inc." division

    = "Web Marketing" development_product = "UZOU ~ Native Ad Network" age = 25 programming_language [ "Ruby", "Scala", "Golang" ] }
  2. AWSରԠ • CloudFormation • AWSެࣜαʔϏεͳͷͰ΄΅શͯͷAWSαʔϏε͕ରԠ • ৽͍͠αʔϏεʹରͯ͠΋ɺ͍ͪૣ͘ରԠ • Terraform •

    ଟ͘ͳਓ͕࢖͏Α͏ͳαʔϏε͸΄΅ରԠ • Ansible • ଟ͘ͷਓ͕࢖͏Α͏ͳαʔϏε͸΄΅ରԠ
  3. provider "aws" { region = "ap-northeast-1" } resource "aws_instance" "web"

    { ami = "ami-408c7f28" instance_type = "t1.micro" tags { Name = "HogeHogeEC2Instance } }
  4. + aws_instance.web ami: "" => "ami-408c7f28" availability_zone: "" => "<computed>"

    ebs_block_device.#: "" => "<computed>" ephemeral_block_device.#: "" => "<computed>" instance_state: "" => "<computed>" instance_type: "" => "t1.micro" key_name: "" => "<computed>" placement_group: "" => "<computed>" private_dns: "" => "<computed>" private_ip: "" => "<computed>" public_dns: "" => "<computed>" public_ip: "" => "<computed>" root_block_device.#: "" => "<computed>" security_groups.#: "" => "<computed>" source_dest_check: "" => "1" subnet_id: "" => "<computed>" tags.#: "" => "1" tags.Name: "" => "HogeHoge" tenancy: "" => "<computed>" vpc_security_group_ids.#: "" => "<computed>" Plan: 1 to add, 0 to change, 0 to destroy.