Skip to content

Commit

Permalink
Release/0.6.3 (#75)
Browse files Browse the repository at this point in the history
### Features
* Add support for `labels` to `application_auth_strategies`

### Bug fixes
* The `cluster_cert_key` in `serverless_cloud_gateway` is now marked as `sensitive`
  • Loading branch information
mheap authored Aug 25, 2024
1 parent e4e4663 commit c47ffa4
Show file tree
Hide file tree
Showing 1,116 changed files with 17,171 additions and 16,748 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tests/e2e/local-plugins
.terraform
.terraform*
*.tfstate*
Expand Down
128 changes: 61 additions & 67 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.6.2
> Released on 2024/08/25
### Features
* Add support for `labels` to `application_auth_strategies`

### Bug fixes
* The `cluster_cert_key` in `serverless_cloud_gateway` is now marked as `sensitive`

## 0.6.2
> Released on 2024/07/24
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ all: speakeasy

speakeasy: check-speakeasy
speakeasy generate sdk --lang terraform -o . -s ./openapi.yaml
@go generate ./..
@go mod tidy
@go generate .
@git clean -fd examples docs > /dev/null
@git checkout -- README.md examples/README.md
@rm USAGE.md
Expand All @@ -15,10 +16,13 @@ check-speakeasy:
OS=$(shell uname | tr "[:upper:]" "[:lower:]")
ARCH=$(shell uname -m | sed 's/aarch64/arm64/' | sed 's/x86_64/amd64/')
test:
@cd tests/e2e; rm -rf .terraform.lock.hcl terraform.tfstate terraform.tfstate.backup .terraform local-plugins
mkdir -p tests/e2e/local-plugins/registry.terraform.io/kong/konnect/999.99.9/$(OS)_$(ARCH)
go mod tidy
go build -o tests/e2e/local-plugins/registry.terraform.io/kong/konnect/999.99.9/$(OS)_$(ARCH)/terraform-provider-konnect_v999.99.9
@cd tests/e2e; terraform providers mirror ./local-plugins || true
@cd tests/e2e; ls -R local-plugins; terraform init -plugin-dir ./local-plugins; terraform apply -auto-approve; terraform destroy -auto-approve


test-cleanup:
@cd tests/e2e; rm -rf local-plugins .terraform .terraform.lock.hcl terraform.tfstate terraform.tfstate.backup
15 changes: 15 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@ description: |-

Konnect API: The Konnect platform API

## Example Usage

```terraform
terraform {
required_providers {
konnect = {
source = "kong/konnect"
version = "0.6.3"
}
}
}
provider "konnect" {
# Configuration options
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
18 changes: 17 additions & 1 deletion docs/resources/api_product.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ description: |-

APIProduct Resource


## Example Usage

```terraform
resource "konnect_api_product" "my_apiproduct" {
description = "Text describing the API product"
name = "My Name"
portal_ids = [
"25a2624c-49fc-4764-99e1-224ed819f200",
]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -43,4 +53,10 @@ Read-Only:
- `portal_id` (String)
- `portal_name` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_api_product.my_konnect_api_product "d32d905a-ed33-46a3-a093-d8f536af9a8a"
```
19 changes: 18 additions & 1 deletion docs/resources/api_product_document.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ description: |-

APIProductDocument Resource


## Example Usage

```terraform
resource "konnect_api_product_document" "my_apiproductdocument" {
api_product_id = "d32d905a-ed33-46a3-a093-d8f536af9a8a"
content = "## My Markdown"
parent_document_id = "dd4e1b98-3629-4dd3-acc0-759a726ffee2"
slug = "path-for-seo"
status = "published"
title = "How to create a document in Konnect DocumentHub"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand All @@ -37,4 +48,10 @@ APIProductDocument Resource
<a id="nestedatt--metadata"></a>
### Nested Schema for `metadata`

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_api_product_document.my_konnect_api_product_document "{ \"api_product_id\": \"d32d905a-ed33-46a3-a093-d8f536af9a8a\", \"id\": \"de5c9818-be5c-42e6-b514-e3d4bc30ddeb\"}"
```
18 changes: 17 additions & 1 deletion docs/resources/api_product_specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ description: |-

APIProductSpecification Resource


## Example Usage

```terraform
resource "konnect_api_product_specification" "my_apiproductspecification" {
api_product_id = "d32d905a-ed33-46a3-a093-d8f536af9a8a"
api_product_version_id = "9f5061ce-78f6-4452-9108-ad7c02821fd5"
content = "My YAML or JSON formatted OAS content"
name = "oas.yaml"
specification_id = "742ff9f1-fb89-4aeb-a599-f0e278c7aeaa"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand All @@ -28,4 +38,10 @@ APIProductSpecification Resource
- `id` (String) The API product version specification identifier.
- `updated_at` (String) An ISO-8601 timestamp representation of entity update date.

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_api_product_specification.my_konnect_api_product_specification "{ \"api_product_id\": \"d32d905a-ed33-46a3-a093-d8f536af9a8a\", \"api_product_version_id\": \"9f5061ce-78f6-4452-9108-ad7c02821fd5\", \"specification_id\": \"742ff9f1-fb89-4aeb-a599-f0e278c7aeaa\"}"
```
14 changes: 14 additions & 0 deletions docs/resources/api_product_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ description: |-

APIProductVersion Resource

## Example Usage

```terraform
resource "konnect_api_product_version" "my_apiproductversion" {
api_product_id = "d32d905a-ed33-46a3-a093-d8f536af9a8a"
deprecated = false
name = "v1"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -67,4 +75,10 @@ Read-Only:
- `id` (String)
- `name` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_api_product_version.my_konnect_api_product_version "{ \"api_product_id\": \"d32d905a-ed33-46a3-a093-d8f536af9a8a\", \"id\": \"9f5061ce-78f6-4452-9108-ad7c02821fd5\"}"
```
27 changes: 27 additions & 0 deletions docs/resources/application_auth_strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ description: |-

ApplicationAuthStrategy Resource

## Example Usage

```terraform
resource "konnect_application_auth_strategy" "my_applicationauthstrategy" {
auth_strategy_id = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand All @@ -36,6 +42,11 @@ Optional:
- `display_name` (String) The display name of the Auth strategy. This is used to identify the Auth strategy in the Portal UI.

Requires replacement if changed. ; Not Null
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Requires replacement if changed.
- `name` (String) The name of the auth strategy. This is used to identify the auth strategy in the Konnect UI.

Requires replacement if changed. ; Not Null
Expand Down Expand Up @@ -91,6 +102,11 @@ Optional:
- `display_name` (String) The display name of the Auth strategy. This is used to identify the Auth strategy in the Portal UI.

Requires replacement if changed. ; Not Null
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Requires replacement if changed.
- `name` (String) The name of the auth strategy. This is used to identify the auth strategy in the Konnect UI.

Requires replacement if changed. ; Not Null
Expand Down Expand Up @@ -125,6 +141,11 @@ Optional:
- `auth_methods` (List of String) Requires replacement if changed. ; Not Null
- `credential_claim` (List of String) Requires replacement if changed. ; Not Null
- `issuer` (String) Requires replacement if changed. ; Not Null
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Requires replacement if changed.
- `scopes` (List of String) Requires replacement if changed. ; Not Null


Expand All @@ -139,4 +160,10 @@ Read-Only:
- `name` (String)
- `provider_type` (String) The type of DCR provider. Can be one of the following - auth0, azureAd, curity, okta, http. must be one of ["auth0", "azureAd", "curity", "okta", "http"]

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_application_auth_strategy.my_konnect_application_auth_strategy "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
```
42 changes: 41 additions & 1 deletion docs/resources/cloud_gateway_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,41 @@ description: |-

CloudGatewayConfiguration Resource


## Example Usage

```terraform
resource "konnect_cloud_gateway_configuration" "my_cloudgatewayconfiguration" {
api_access = "private"
configuration_id = "edaf40f9-9fb0-4ffe-bb74-4e763a6bd471"
control_plane_geo = "au"
control_plane_id = "0949471e-b759-45ba-87ab-ee63fb781388"
dataplane_groups = [
{
autoscale = {
configuration_data_plane_group_autoscale_autopilot = {
base_rps = 1
kind = "autopilot"
max_rps = 1000
}
}
cloud_gateway_network_id = "36ae63d3-efd1-4bec-b246-62aa5d3f5695"
created_at = "2022-11-04T20:10:06.927Z"
egress_ip_addresses = [
"...",
]
id = "cbb8872a-1f83-4806-bf69-fdf0b4783c7e"
private_ip_addresses = [
"...",
]
provider = "aws"
region = "us-east-2"
state = "terminating"
updated_at = "2022-11-04T20:10:06.927Z"
},
]
version = "3.2"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -120,4 +154,10 @@ Read-Only:
- `kind` (String) must be one of ["static"]
- `requested_instances` (Number) Number of data-planes the deployment target will contain.

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_cloud_gateway_configuration.my_konnect_cloud_gateway_configuration "edaf40f9-9fb0-4ffe-bb74-4e763a6bd471"
```
15 changes: 15 additions & 0 deletions docs/resources/cloud_gateway_custom_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ description: |-

CloudGatewayCustomDomain Resource

## Example Usage

```terraform
resource "konnect_cloud_gateway_custom_domain" "my_cloudgatewaycustomdomain" {
control_plane_geo = "us"
control_plane_id = "0949471e-b759-45ba-87ab-ee63fb781388"
custom_domain_id = "39ed3790-085d-4605-9627-f96d86aaf425"
domain = "example.com"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -43,4 +52,10 @@ Read-Only:
- `reason` (String) Reason why the custom domain may be in an erroneous state, reported from backing infrastructure.
- `reported_status` (String) Reported status of the custom domain from backing infrastructure.

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_cloud_gateway_custom_domain.my_konnect_cloud_gateway_custom_domain "39ed3790-085d-4605-9627-f96d86aaf425"
```
22 changes: 21 additions & 1 deletion docs/resources/cloud_gateway_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,21 @@ description: |-

CloudGatewayNetwork Resource


## Example Usage

```terraform
resource "konnect_cloud_gateway_network" "my_cloudgatewaynetwork" {
availability_zones = [
"...",
]
cidr_block = "10.0.0.0/8"
cloud_gateway_provider_account_id = "929b2449-c69f-44c4-b6ad-9ecec6f811ae"
ddos_protection = false
name = "us-east-2 network"
network_id = "36ae63d3-efd1-4bec-b246-62aa5d3f5695"
region = "us-east-2"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -58,4 +72,10 @@ Read-Only:
- `subnet_ids` (List of String)
- `vpc_id` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_cloud_gateway_network.my_konnect_cloud_gateway_network "36ae63d3-efd1-4bec-b246-62aa5d3f5695"
```
26 changes: 25 additions & 1 deletion docs/resources/cloud_gateway_transit_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@ description: |-

CloudGatewayTransitGateway Resource


## Example Usage

```terraform
resource "konnect_cloud_gateway_transit_gateway" "my_cloudgatewaytransitgateway" {
cidr_blocks = [
"...",
]
name = "us-east-2 transit gateway"
network_id = "36ae63d3-efd1-4bec-b246-62aa5d3f5695"
transit_gateway_attachment_config = {
aws_transit_gateway_attachment_config = {
kind = "aws-transit-gateway-attachment"
ram_share_arn = "...my_ram_share_arn..."
transit_gateway_id = "...my_transit_gateway_id..."
}
}
transit_gateway_id = "0850820b-d153-4a2a-b9be-7d2204779139"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -70,4 +88,10 @@ for a transit gateway.
Requires replacement if changed. ; Not Null
- `remote_dns_server_ip_addresses` (List of String) Remote DNS Server IP Addresses to connect to for resolving internal DNS via a transit gateway. Requires replacement if changed. ; Not Null

## Import

Import is supported using the following syntax:

```shell
terraform import konnect_cloud_gateway_transit_gateway.my_konnect_cloud_gateway_transit_gateway "{ \"network_id\": \"36ae63d3-efd1-4bec-b246-62aa5d3f5695\", \"transit_gateway_id\": \"0850820b-d153-4a2a-b9be-7d2204779139\"}"
```
Loading

0 comments on commit c47ffa4

Please sign in to comment.