Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ uv run --directory examples/lambda/function python app.py generate lambda-zip --
```

OpenTofu 1.13 deploys it with the credentials and the region of the default
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, and a new build of the same
files changes nothing:
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, or of the profile of
`-var aws_profile=NAME`, and a new build of the same files changes nothing:

```sh
tofu -chdir=examples/lambda init
Expand Down
6 changes: 6 additions & 0 deletions examples/lambda/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ variable "region" {
default = null
}

variable "aws_profile" {
description = "The profile of AWS of the credentials and the region, or the one of the default chain of AWS"
type = string
default = null
}

variable "runtime" {
description = "The runtime of Python of the function, the one of \"generate lambda-zip --runtime\""
type = string
Expand Down
7 changes: 4 additions & 3 deletions examples/lambda/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ terraform {
}
}

# The credentials and the region of the default chain of AWS: the variables of the environment, the profile and the
# role of the machine
# The credentials and the region of the profile of the variable "aws_profile", or of the default chain of AWS: the
# variables of the environment, the profile and the role of the machine
provider "aws" {
region = var.region
profile = var.aws_profile
region = var.region

default_tags {
tags = {
Expand Down
4 changes: 2 additions & 2 deletions examples/lambda_stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ uv run --directory examples/lambda_stream/function python app.py generate lambda
```

OpenTofu 1.13 deploys it with the credentials and the region of the default
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, and a new build of the same
files changes nothing:
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, or of the profile of
`-var aws_profile=NAME`, and a new build of the same files changes nothing:

```sh
tofu -chdir=examples/lambda_stream init
Expand Down
6 changes: 6 additions & 0 deletions examples/lambda_stream/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ variable "region" {
default = null
}

variable "aws_profile" {
description = "The profile of AWS of the credentials and the region, or the one of the default chain of AWS"
type = string
default = null
}

variable "runtime" {
description = "The runtime of Python of the function, the one of \"generate lambda-zip --runtime\""
type = string
Expand Down
7 changes: 4 additions & 3 deletions examples/lambda_stream/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ terraform {
}
}

# The credentials and the region of the default chain of AWS: the variables of the environment, the profile and the
# role of the machine
# The credentials and the region of the profile of the variable "aws_profile", or of the default chain of AWS: the
# variables of the environment, the profile and the role of the machine
provider "aws" {
region = var.region
profile = var.aws_profile
region = var.region

default_tags {
tags = {
Expand Down
4 changes: 2 additions & 2 deletions examples/lambda_zip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ uv run --directory examples/lambda_zip/function python app.py generate lambda-zi
```

OpenTofu 1.13 deploys it with the credentials and the region of the default
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, and a new build of the same
files changes nothing:
chain of AWS, as `AWS_PROFILE` and `AWS_REGION`, or of the profile of
`-var aws_profile=NAME`, and a new build of the same files changes nothing:

```sh
tofu -chdir=examples/lambda_zip init
Expand Down
6 changes: 6 additions & 0 deletions examples/lambda_zip/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ variable "region" {
default = null
}

variable "aws_profile" {
description = "The profile of AWS of the credentials and the region, or the one of the default chain of AWS"
type = string
default = null
}

variable "pyjoyment_layer" {
description = "The ARN of a published layer of Pyjoyment, in the place of the public one or of function/dist/pyjoyment.zip"
type = string
Expand Down
7 changes: 4 additions & 3 deletions examples/lambda_zip/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ terraform {
}
}

# The credentials and the region of the default chain of AWS: the variables of the environment, the profile and the
# role of the machine
# The credentials and the region of the profile of the variable "aws_profile", or of the default chain of AWS: the
# variables of the environment, the profile and the role of the machine
provider "aws" {
region = var.region
profile = var.aws_profile
region = var.region

default_tags {
tags = {
Expand Down
Loading