Question

  • Creator
    Topic
  • #4039305

    AWS Availability Zone Subnetting

    Locked

    by bcopeland64 ·

    Hello All,

    I’m new to cloud computing with Amazon and using Terraform to create my environment. I am trying to create two availability zones, each one with its own subnet. I am using an IP address of 10.0.0.0/16, which means that I should logically be able to use subnets with the following addresses:

    10.0.3.0/24
    10.0.4.0/24
    10.0.5.0/24
    10.0.6.0/24
    10.0.7.0/24

    However, when I do this I get errors when I run terraform apply. What am I doing wrong? Thanks for any assistance.

All Answers

  • Author
    Replies
    • #4039349
      Avatar photo

      There’s a basic issue here with your choice of IP.

      by rproffitt ·

      In reply to AWS Availability Zone Subnetting

      Read https://www.arin.net/reference/research/statistics/address_filters/

      Those addresses would never be accessible from the Internet.

      Maybe you could do this on a LAN but not the Internet.

      • #4039365

        Reply To: AWS Availability Zone Subnetting

        by bcopeland64 ·

        In reply to There’s a basic issue here with your choice of IP.

        Thanks for your assistance. I just wanted to as a brief question. I took a look at Amazon’s website, and even IP addresses that are supposed to be public give me the same error messages. Is there a list of available IP addresses for public use? Also, is there a way for terraform to look for any availability zones that are open and just use those for AWS? Sorry for all the questions, but I am new to Terraform.

    • #4174579

      Reply To: AWS Availability Zone Subnetting

      by sofia.adams1987 ·

      In reply to AWS Availability Zone Subnetting

      You can think of a VPC in AWS as an apartment that separates the resources you create from other customers within the Amazon Cloud. You are the one who defines your network at Amazon. You can think of a VPC as an apartment where your objects and database objects are analogous. Walls separate your dwelling and protect your belongings from the access of other peoples of the colony.

      • This reply was modified 9 months, 2 weeks ago by sofia.adams1987.
      • This reply was modified 9 months, 2 weeks ago by Avatar photokees_b.
Viewing 1 reply thread