Giter Club home page Giter Club logo

Comments (5)

rforte-mule avatar rforte-mule commented on June 23, 2024 2

Hi @arun-tu, @ccortinhas-pmi and @soufi,

As far as I understood, vpc_routes are Computed, they cannot be changed: https://help.mulesoft.com/s/article/How-to-View-the-VPC-Route-Table-using-the-API.

About the Firewall rules issue, I've created a specific diff method. Changes in Firewall rules are now correctly detected.

Fixes will be available in the next release.

from terraform-provider-anypoint.

ccortinhas-pmi avatar ccortinhas-pmi commented on June 23, 2024 1

Hello @soufi

And are you able to create a VPC from start with the internet gateway VPC route already defined? We get a plugin crash each time.. And that is why we removed those fields since they are created in the background anyway.

I would love to run a few more examples on my side but sadly we reached the VPC limit in Anypoint, as soon as I manage to do it I'll provide more info about my setup, including terraform version, plugin version (should be the latest though) and a complete execution log.

from terraform-provider-anypoint.

arun-tu avatar arun-tu commented on June 23, 2024 1

Hi @soufi , As you already created VPC. You can try to do terraform plan second time, you will see few more changes though you never make any changes to vpc.tf. I even faced similar issue.
As a workaround, added below
lifecycle {
ignore_changes = all
}

from terraform-provider-anypoint.

RamziChoueri2903 avatar RamziChoueri2903 commented on June 23, 2024

@soufi as discussed

from terraform-provider-anypoint.

soufi avatar soufi commented on June 23, 2024

Hi @ccortinhas-pmi

It's actually odd because I use vpc routes on my playground. Here's an example I've been running:

resource "anypoint_vpc" "avpc" {
  org_id = anypoint_bg.bg.id
  name = "myAwesomeVPC"
  region = "us-east-2"
  owner_id = anypoint_bg.bg.id
  cidr_block = "192.168.0.0/24"
  internal_dns_servers = []
  internal_dns_special_domains = []
  is_default = true
  associated_environments = []
  shared_with = []
  firewall_rules {
    cidr_block = "0.0.0.0/0"
    from_port = 8081
    protocol = "tcp"
    to_port = 8082
  }
  firewall_rules {
      cidr_block = "10.0.0.0/20"
      from_port = 8091
      protocol = "tcp"
      to_port = 8092
  }
  vpc_routes {
    cidr = "10.0.0.0/20"
    next_hop = "Local"
  }
  vpc_routes{
    cidr = "0.0.0.0/0"
    next_hop = "Internet Gateway"
  }
}

from terraform-provider-anypoint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.