Code Monkey home page Code Monkey logo

Comments (3)

jparnaudeau avatar jparnaudeau commented on July 4, 2024 1

Hi,

you have right ! I have pushed a new version v1.1.0 with a compatibility with 0.15 version.

from terraform-aws-ssm-patch-management.

jparnaudeau avatar jparnaudeau commented on July 4, 2024

Hi,
sorry i don't understand what you want. From my point of view, module code should be independent of tthe region. If i need to use my module in different region, i will do something like this 👍

# define provider in main region
provider "aws" {
  region = "eu-central-1"
}
# define provider in DR region
provider "aws" {
  alias  = "dr_region"
  region = "eu-west-1"
}

# deploy module on main region
module "ssm_main" {
  ...
}

# deploy module on dr region
module "ssm_dr" {
  providers = {
    aws = aws.dr_region
  }
  ...
}

from terraform-aws-ssm-patch-management.

olds463 avatar olds463 commented on July 4, 2024

Hmm I receive the following on latest terraform

│ Warning: Provider aws is undefined
│ 
│   on maintenance-windows.tf line 85, in module "ssm-patch-management-canada":
│   85:   providers = { aws = aws.ca-central-1 }
│ 
│ Module module.ssm-patch-management-canada does not declare a provider named aws.
│ If you wish to specify a provider configuration for the module, add an entry for aws in the required_providers block within the module.
│ 
│ (and 2 more similar warnings elsewhere)

In your modules you need todo something like the below ( i think, atleast i works when I copy your module local)

terraform {
  required_providers {
    aws = {
      source                = "hashicorp/aws"
      version               = ">= 2.7.0"
    }
  }
}

from terraform-aws-ssm-patch-management.

Related Issues (6)

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.