Skip to content

Commit

Permalink
Improve examples and set module version to v1.3.0 (#20)
Browse files Browse the repository at this point in the history
Set module version to 1.3.0.

Update the versions constraints on provider illumio-cloudsecure in all
modules and examples to use `>=` instead of `~>`.

Update the format of module source/version in all examples.
  • Loading branch information
rlenglet authored Oct 28, 2024
1 parent d309eff commit a2d8de7
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Terraform submodules that add functionality to Illumio's CloudSecure Terraform p

| Name | Version |
|------|---------|
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

Expand Down
4 changes: 2 additions & 2 deletions examples/aws_account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

Expand All @@ -14,7 +14,7 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_aws_account_dev"></a> [aws\_account\_dev](#module\_aws\_account\_dev) | github.com/illumio/terraform-illumio-cloudsecure//modules/aws_account | v1.2.4 |
| <a name="module_aws_account_dev"></a> [aws\_account\_dev](#module\_aws\_account\_dev) | illumio/cloudsecure/illumio//modules/aws_account | 1.3.0 |

## Resources

Expand Down
7 changes: 4 additions & 3 deletions examples/aws_account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ provider "illumio-cloudsecure" {
}

module "aws_account_dev" {
source = "github.com/illumio/terraform-illumio-cloudsecure//modules/aws_account?ref=v1.2.4"
name = "Test Account"
tags = {
source = "illumio/cloudsecure/illumio//modules/aws_account"
version = "1.3.0"
name = "Test Account"
tags = {
Name = "CloudSecure Account Policy"
Owner = "Engineering"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/aws_account/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
aws = {
source = "hashicorp/aws"
Expand Down
6 changes: 3 additions & 3 deletions examples/aws_flow_logs_s3_buckets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

Expand All @@ -14,8 +14,8 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_aws_account_dev"></a> [aws\_account\_dev](#module\_aws\_account\_dev) | github.com/illumio/terraform-illumio-cloudsecure//modules/aws_account | v1.2.4 |
| <a name="module_aws_flow_logs_s3_buckets"></a> [aws\_flow\_logs\_s3\_buckets](#module\_aws\_flow\_logs\_s3\_buckets) | github.com/illumio/terraform-illumio-cloudsecure//modules/aws_flow_logs_s3_buckets | v1.2.4 |
| <a name="module_aws_account_dev"></a> [aws\_account\_dev](#module\_aws\_account\_dev) | illumio/cloudsecure/illumio//modules/aws_account | 1.3.0 |
| <a name="module_aws_flow_logs_s3_buckets"></a> [aws\_flow\_logs\_s3\_buckets](#module\_aws\_flow\_logs\_s3\_buckets) | illumio/cloudsecure/illumio//modules/aws_flow_logs_s3_buckets | 1.3.0 |

## Resources

Expand Down
10 changes: 6 additions & 4 deletions examples/aws_flow_logs_s3_buckets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ provider "illumio-cloudsecure" {
}

module "aws_account_dev" {
source = "github.com/illumio/terraform-illumio-cloudsecure//modules/aws_account?ref=v1.2.4"
name = "Test Account"
tags = {
source = "illumio/cloudsecure/illumio//modules/aws_account"
version = "1.3.0"
name = "Test Account"
tags = {
Name = "CloudSecure Account Policy"
Owner = "Engineering"
}
}

module "aws_flow_logs_s3_buckets" {
source = "github.com/illumio/terraform-illumio-cloudsecure//modules/aws_flow_logs_s3_buckets?ref=v1.2.4"
source = "illumio/cloudsecure/illumio//modules/aws_flow_logs_s3_buckets"
version = "1.3.0"
role_id = aws_account_dev.role_id
s3_bucket_arns = [
"arn:aws:s3:::vpc1",
Expand Down
2 changes: 1 addition & 1 deletion examples/aws_flow_logs_s3_buckets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion examples/azure_subscription/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_azure_subscription_dev"></a> [azure\_subscription\_dev](#module\_azure\_subscription\_dev) | github.com/illumio/terraform-illumio-cloudsecure//modules/azure_subscription | v1.3.0 |
| <a name="module_azure_subscription_dev"></a> [azure\_subscription\_dev](#module\_azure\_subscription\_dev) | illumio/cloudsecure/illumio//modules/azure_subscription | 1.3.0 |

## Resources

Expand Down
5 changes: 3 additions & 2 deletions examples/azure_subscription/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ provider "illumio-cloudsecure" {
}

module "azure_subscription_dev" {
source = "github.com/illumio/terraform-illumio-cloudsecure//modules/azure_subscription?ref=v1.3.0"
name = "Test Azure Subscription"
source = "illumio/cloudsecure/illumio//modules/azure_subscription"
version = "1.3.0"
name = "Test Azure Subscription"
mode = "ReadWrite"
secret_expiration_days = 365
subscription_id = "1681e851-ba2d-410b-a66a-9511887e1c1a" # Azure Subscription ID
Expand Down
4 changes: 2 additions & 2 deletions examples/k8s_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.15 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

Expand All @@ -14,7 +14,7 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_k8s_cluster_dev"></a> [k8s\_cluster\_dev](#module\_k8s\_cluster\_dev) | github.com/illumio/terraform-illumio-cloudsecure//modules/k8s_cluster | v1.2.4 |
| <a name="module_k8s_cluster_dev"></a> [k8s\_cluster\_dev](#module\_k8s\_cluster\_dev) | illumio/cloudsecure/illumio//modules/k8s_cluster | 1.3.0 |

## Resources

Expand Down
3 changes: 2 additions & 1 deletion examples/k8s_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ provider "illumio-cloudsecure" {
}

module "k8s_cluster_dev" {
source = "github.com/illumio/terraform-illumio-cloudsecure//modules/k8s_cluster?ref=v1.2.4"
source = "illumio/cloudsecure/illumio//modules/k8s_cluster"
version = "1.3.0"
illumio_region = "aws-us-west-2"
name = "example-release"
description = "Dev cluster in aws-us-west-2"
Expand Down
2 changes: 1 addition & 1 deletion examples/k8s_cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
helm = {
source = "hashicorp/helm"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
}
}
4 changes: 2 additions & 2 deletions modules/aws_account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | >= 1.0.11 |
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.0 |

## Modules
Expand Down
2 changes: 1 addition & 1 deletion modules/aws_account/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
aws = {
source = "hashicorp/aws"
Expand Down
4 changes: 2 additions & 2 deletions modules/aws_flow_logs_s3_buckets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
| Name | Version |
|------|---------|
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | >= 1.0.11 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion modules/aws_flow_logs_s3_buckets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
aws = {
source = "hashicorp/aws"
Expand Down
4 changes: 2 additions & 2 deletions modules/k8s_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
| Name | Version |
|------|---------|
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.15 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="requirement_illumio-cloudsecure"></a> [illumio-cloudsecure](#requirement\_illumio-cloudsecure) | >= 1.0.11 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_helm"></a> [helm](#provider\_helm) | >= 2.15 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | ~> 1.0.11 |
| <a name="provider_illumio-cloudsecure"></a> [illumio-cloudsecure](#provider\_illumio-cloudsecure) | >= 1.0.11 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion modules/k8s_cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
illumio-cloudsecure = {
source = "illumio/illumio-cloudsecure"
version = "~> 1.0.11"
version = ">= 1.0.11"
}
helm = {
source = "hashicorp/helm"
Expand Down

0 comments on commit a2d8de7

Please sign in to comment.