Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create ec2 instance for web-server #6

Merged
merged 4 commits into from Dec 2, 2017
Merged

Conversation

litencatt
Copy link
Owner

@litencatt litencatt commented Dec 2, 2017

  • EC2インスタンス作成
  • ネットワークインターフェースの作成とEC2インスタンスへの追加
    • 下記エラーが出たので自動割当パブリックIPは無効に
    $ terraform plan
    Error: aws_instance.web-server: "network_interface": conflicts with associate_public_ip_address (true)
    
    • => network_interfaceを作成・追加する必要はなかったので削除
  • セキュリティグループの追加

refs

@litencatt
Copy link
Owner Author

litencatt commented Dec 2, 2017

EC2インスタンス作成

image

ストレージ設定なしの場合、defaultのストレージがアッタチされている
image

@litencatt
Copy link
Owner Author

litencatt commented Dec 2, 2017

ネットワークインターフェース追加

d3ba666 で追加していますが、追加は不要だったためその後のcommitで削除しています。
image

@litencatt
Copy link
Owner Author

litencatt commented Dec 2, 2017

セキュリティグループの追加

image

@litencatt litencatt merged commit 7d4d4f9 into master Dec 2, 2017
@litencatt litencatt deleted the create-ec2-instance branch December 2, 2017 02:21
@litencatt
Copy link
Owner Author

$ ssh -i my-key.pem ec2-user@13.115.38.146
Last login: Sat Dec  2 02:23:50 2017 from 133.208.249.39

       __|  __|_  )
       _|  (     /   Amazon Linux AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-ami/2017.09-release-notes/
[ec2-user@ip-10-0-1-10 ~]$

litencatt added a commit that referenced this pull request Dec 3, 2017
create ec2 instance for web-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant