Skip to content

Commit

Permalink
DXE-2750 Merge pull request #443 from akamai/release/v5.0.0
Browse files Browse the repository at this point in the history
Release/v5.0.0
  • Loading branch information
wzagrajcz committed Jul 5, 2023
2 parents 921339f + 013e546 commit 3e79eb5
Show file tree
Hide file tree
Showing 737 changed files with 25,860 additions and 10,284 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
- -trimpath
- -tags=all
ldflags:
- -s -w -X github.com/akamai/terraform-provider-akamai/v4/version.ProviderVersion={{.Version}}
- -s -w -X github.com/akamai/terraform-provider-akamai/v5/version.ProviderVersion={{.Version}}
goos:
- windows
- linux
Expand Down
96 changes: 93 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,95 @@
# RELEASE NOTES

## 5.0.0 (Jul 5, 2023)

#### BREAKING CHANGES:

* DataStream
* Changed the following data sources in DataStream 2 V2 API:
* `akamai_datastream_activation_history` - changed schema and corresponding implementations.
* `akamai_datastream_dataset_fields` - changed parameter, schema and corresponding implementations.
* `akamai_datastreams` - changed parameter, schema and corresponding implementations.
* Changed the following resources in DataStream 2 V2 API:
* `akamai_datastreams` - changed in schema payload, response attributes and corresponding implementations.
* Updated attribute names in `datastream.connectors`.
* Updated methods in `datastream.stream` for the above changes.

* PAPI
* Changed default value of `auto_acknowledge_rule_warnings` to `false` in `akamai_property_activation` resource

* Removed undocumented support for configuring provider with environment variables (`AKAMAI_ACCESS_TOKEN`, `AKAMAI_CLIENT_TOKEN`, `AKAMAI_HOST`, `AKAMAI_CLIENT_SECRET`, `AKAMAI_MAX_BODY`, and their `AKAMAI_{section}_xxx` equivalents).
As an alternative users should now use provider's [config](https://techdocs.akamai.com/terraform/docs/gs-authentication#use-inline-credentials) block with [TF_VAR_](https://developer.hashicorp.com/terraform/language/values/variables#environment-variables) envs when wanting to provide configuration through enviroment variables.

##### Removed deprecated schema fields

* Appsec
* `notes` and `activate` fields in `akamai_appsec_activations` resource
* `appsec_section` and `appsec` fields in provider schema

* CPS
* `enable_multi_stacked_certificates` field in `akamai_cps_dv_enrollment` resource

* DNS
* `dns_section` and `dns` fields in provider schema

* GTM
* `gtm_section` and `gtm` fields in provider schema

* IAM
* `is_locked` field in `akamai_iam_user` resource

* Network Lists
* `activate` field in `akamai_networklist_activations` resource
* `networklist_section` and `network` fields in provider schema

* PAPI
* `contract` and `group` fields in `akamai_cp_code` data source
* `group` field in `akamai_contract` data source
* `name` and `contract` fields in `akamai_group` data source
* `contract`, `group` and `product` fields in `akamai_cp_code` resource
* `contract`, `group` and `product` fields in `akamai_edge_hostname` resource
* `property` and `rule_warnings` fields in `akamai_property_activation` resource
* `contract`, `group` and `product` fields in `akamai_property` resource
* `papi_section`, `property_section` and `property` fields in provider schema

##### Removed deprecated resource

* PAPI
* `akamai_property_variables`

#### FEATURES/ENHANCEMENTS:

* Provider tested and now supports Terraform 1.4.6
* Migrated `akamai_property_include` data source from SDKv2 to Framework.

* PAPI
* Added import to `akamai_property_activation` resource
* Extended `akamai_property_rules_builder` data source: added support for rules frozen format `v2023-01-05` and `v2023-05-30`

* Appsec
* Updated Geo control to include Action for Ukraine.
* Added `akamai_appsec_advanced_settings_pii_learning` data source and resource for managing the PII learning advanced setting.

#### DEPRECATIONS

* Deprecated `active` field in `akamai_dns_record` resource

#### BUG FIXES:

* CPS
* Fixed bug in `akamai_cps_dv_enrollment` resource when MTLS settings are provided ([#339](https://github.com/akamai/terraform-provider-akamai/issues/339))
* Fixed `sans` field causing perpetual in-place update in `akamai_cps_third_party_enrollment` ([#415](https://github.com/akamai/terraform-provider-akamai/issues/415))

* GTM
* Made `test_object` inside `liveness_test` required only for `test_object_protocol` values: `HTTP`, `HTTPS` or `FTP` ([I#408](https://github.com/akamai/terraform-provider-akamai/issues/408))

* Cloudlets
* Added wait for propagation of policy activation deletions, before removing the policy in `akamai_cloudlets_policy` ([I#420](https://github.com/akamai/terraform-provider-akamai/issues/420))

* PAPI
* Removed hostname validation on `akamai_property` resource ([I#422](https://github.com/akamai/terraform-provider-akamai/issues/422))


## 4.1.0 (Jun 1, 2023)

#### FEATURES/ENHANCEMENTS:
Expand All @@ -8,7 +98,7 @@
* New data sources:
* `akamai_gtm_datacenter` - get datacenter information
* `akamai_gtm_datacenters` - get datacenters information

## 4.0.0 (May 30, 2023)

#### BREAKING CHANGES:
Expand Down Expand Up @@ -859,8 +949,8 @@ These are the operations supported in the Network Lists API v2:
These are the operations supported in the Identity Management: User Administration API v2:

* Create a new user
* Update a user’s profile
* Update a user’s role assignments
* Update a user’s profile
* Update a user’s role assignments
* Delete a user

## 1.1.1 (Jan 8, 2021)
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TF_PLUGIN_DIR ?= ~/.terraform.d/plugins
install_path = $(TF_PLUGIN_DIR)/$(registry_name)/$(namespace)/$(PKG_NAME)/$(version)/$$(go env GOOS)_$$(go env GOARCH)

# Tools versions
golangci-lint-version = v1.50.1
golangci-lint-version = v1.52.2
tflint-version = v0.45.0

default: build
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ Akamai Provider for Terraform
==================

![Build Status](https://github.com/akamai/terraform-provider-akamai/actions/workflows/checks.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/terraform-provider-akamai/v4)](https://goreportcard.com/report/github.com/akamai/terraform-provider-akamai/v4)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/terraform-provider-akamai/v5)](https://goreportcard.com/report/github.com/akamai/terraform-provider-akamai/v5)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/akamai/terraform-provider-akamai)
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-blue.svg)](https://opensource.org/licenses/MPL-2.0)
[![GoDoc](https://godoc.org/github.com/akamai/terraform-provider-akamai?status.svg)](https://pkg.go.dev/github.com/akamai/terraform-provider-akamai/v4)
[![GoDoc](https://godoc.org/github.com/akamai/terraform-provider-akamai?status.svg)](https://pkg.go.dev/github.com/akamai/terraform-provider-akamai/v5)

Use the Akamai Provider to manage and provision your Akamai configurations in Terraform. You can use the Akamai Provider for many Akamai products.

Expand Down
4 changes: 2 additions & 2 deletions build/internal/docker_jenkins.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ COVERAGE_HTML="$COVERAGE_DIR"/index.html

WORKDIR="${WORKDIR-$(pwd)}"
echo "WORKDIR is $WORKDIR"
TERRAFORM_VERSION="1.3.7"
TERRAFORM_VERSION="1.4.6"

STASH_SERVER=git.source.akamai.com
GIT_IP=$(dig +short $STASH_SERVER)
Expand Down Expand Up @@ -92,7 +92,7 @@ docker exec akatf-container sh -c 'git clone ssh://[email protected]:799
echo "Checkout branches"
docker exec akatf-container sh -c 'cd edgegrid; git checkout ${EDGEGRID_BRANCH_NAME};
cd ../terraform-provider-akamai; git checkout ${PROVIDER_BRANCH_NAME};
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v6=../edgegrid;
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v7=../edgegrid;
go mod tidy -compat=1.18'

echo "Running golangci-lint"
Expand Down
2 changes: 1 addition & 1 deletion build/internal/package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.0-experimental
ARG TERRAFORM_VERSION="1.3.7"
ARG TERRAFORM_VERSION="1.4.6"
FROM alpine:3.16
ENV PROVIDER_VERSION="1.0.0" \
CGO_ENABLED=0 \
Expand Down
2 changes: 1 addition & 1 deletion build/internal/package/nexus-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ checkout_edgegrid() {
}

adjust_edgegrid() {
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v6="./akamaiopen-edgegrid-golang"
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v7="./akamaiopen-edgegrid-golang"
go mod tidy -compat=1.18
}

Expand Down
2 changes: 1 addition & 1 deletion build/internal/releaser/goreleaser_build.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd /workspace/terraform-provider-akamai
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v6=../akamaiopen-edgegrid-golang/
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v7=../akamaiopen-edgegrid-golang/
git tag v10.0.0
goreleaser build --single-target --skip-validate --config ./.goreleaser.yml --output /root/.terraform.d/plugins/registry.terraform.io/akamai/akamai/10.0.0/linux_amd64/terraform-provider-akamai_v10.0.0
24 changes: 12 additions & 12 deletions docs/data-sources/data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ We’ve moved our documentation to the Akamai TechDocs site. Use the table to fi

|Subprovider|Description|
|---|---|
|[Application Security](https://techdocs.akamai.com/terraform/v4.1/docs/appsec-datasources)|Manage security configurations, security policies, match targets, rate policies, and firewall rules.|
|[Bot Manager](https://techdocs.akamai.com/terraform/v4.1/docs/botman-datasources)|Identify, track, and respond to bot activity on your domain or in your app.|
|[Certificates](https://techdocs.akamai.com/terraform/v4.1/docs/cps-datasources)|Full life cycle management of SSL certificates for your ​Akamai​ CDN applications.|
|[Cloudlets](https://techdocs.akamai.com/terraform/v4.1/docs/cl-datasources)|Solve specific business challenges using value-added apps that complement ​Akamai​'s core solutions.|
|[DataStream](https://techdocs.akamai.com/terraform/v4.1/docs/ds-datasources)|Monitor activity on the ​Akamai​ platform and send live log data to a destination of your choice.|
|[Edge DNS](https://techdocs.akamai.com/terraform/v4.1/docs/edns-datasources)|Replace or augment your DNS infrastructure with a cloud-based authoritative DNS solution.|
|[EdgeWorkers](https://techdocs.akamai.com/terraform/v4.1/docs/ew-datasources)|Execute JavaScript functions at the edge to optimize site performance and customize web experiences.|
|[Global Traffic Management](https://techdocs.akamai.com/terraform/v4.1/docs/gtm-datasources)|Use load balancing to manage website and mobile performance demands.|
|[Identity and Access Management](https://techdocs.akamai.com/terraform/v4.1/docs/iam-datasources)|Create users and groups, and define policies that manage access to your Akamai applications.|
|[Image and Video Manager](https://techdocs.akamai.com/terraform/v4.1/docs/ivm-datasources)|Automate image and video delivery optimizations for your website visitors.|
|[Network Lists](https://techdocs.akamai.com/terraform/v4.1/docs/nl-datasources)|Automate the creation, deployment, and management of lists used in ​Akamai​ security products.|
|[Property](https://techdocs.akamai.com/terraform/v4.1/docs/pm-datasources)|Define rules and behaviors that govern your website delivery based on match criteria.|
|[Application Security](https://techdocs.akamai.com/terraform/v5.0/docs/appsec-datasources)|Manage security configurations, security policies, match targets, rate policies, and firewall rules.|
|[Bot Manager](https://techdocs.akamai.com/terraform/v5.0/docs/botman-datasources)|Identify, track, and respond to bot activity on your domain or in your app.|
|[Certificates](https://techdocs.akamai.com/terraform/v5.0/docs/cps-datasources)|Full life cycle management of SSL certificates for your ​Akamai​ CDN applications.|
|[Cloudlets](https://techdocs.akamai.com/terraform/v5.0/docs/cl-datasources)|Solve specific business challenges using value-added apps that complement ​Akamai​'s core solutions.|
|[DataStream](https://techdocs.akamai.com/terraform/v5.0/docs/ds-datasources)|Monitor activity on the ​Akamai​ platform and send live log data to a destination of your choice.|
|[Edge DNS](https://techdocs.akamai.com/terraform/v5.0/docs/edns-datasources)|Replace or augment your DNS infrastructure with a cloud-based authoritative DNS solution.|
|[EdgeWorkers](https://techdocs.akamai.com/terraform/v5.0/docs/ew-datasources)|Execute JavaScript functions at the edge to optimize site performance and customize web experiences.|
|[Global Traffic Management](https://techdocs.akamai.com/terraform/v5.0/docs/gtm-datasources)|Use load balancing to manage website and mobile performance demands.|
|[Identity and Access Management](https://techdocs.akamai.com/terraform/v5.0/docs/iam-datasources)|Create users and groups, and define policies that manage access to your Akamai applications.|
|[Image and Video Manager](https://techdocs.akamai.com/terraform/v5.0/docs/ivm-datasources)|Automate image and video delivery optimizations for your website visitors.|
|[Network Lists](https://techdocs.akamai.com/terraform/v5.0/docs/nl-datasources)|Automate the creation, deployment, and management of lists used in ​Akamai​ security products.|
|[Property](https://techdocs.akamai.com/terraform/v5.0/docs/pm-datasources)|Define rules and behaviors that govern your website delivery based on match criteria.|
30 changes: 15 additions & 15 deletions docs/guides/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Use our Terraform provider to provision and manage your Akamai configurations in
- Understand the [basics of Terraform](https://learn.hashicorp.com/terraform?utm_source=terraform_io).
- Install our [Terraform CLI](https://github.com/akamai/cli-terraform) to export your Akamai configurations.

## How it works
## What you'll do

![Terraform overview](https://techdocs.akamai.com/terraform-images/img/ext-tf-gs.png)
Initialize our provider, set up basic authentication, and begin your Akamai configuration set up.

## Start your configuration

Expand All @@ -21,7 +21,7 @@ Your Akamai Terraform configuration starts with listing us as a required provide
required_providers {
akamai = {
source = "akamai/akamai"
version = "4.1.0"
version = "5.0.0"
}
}
}
Expand Down Expand Up @@ -99,18 +99,18 @@ Use the table to find information about the subprovider you’re using.

|Subprovider|Description|
|---|---|
|[Application Security](https://techdocs.akamai.com/terraform/v4.1/docs/configure-appsec)|Manage security configurations, security policies, match targets, rate policies, and firewall rules.|
|[Bot Manager](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-botman)|Identify, track, and respond to bot activity on your domain or in your app.|
|[Certificates](https://techdocs.akamai.com/terraform/v4.1/docs/cps-integration-guide)|Full life cycle management of SSL certificates for your ​Akamai​ CDN applications.|
|[Cloudlets](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-cloudlets)|Solve specific business challenges using value-added apps that complement ​Akamai​'s core solutions.|
|[DataStream](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-datastream)|Monitor activity on the ​Akamai​ platform and send live log data to a destination of your choice.|
|[Edge DNS](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-edgedns)|Replace or augment your DNS infrastructure with a cloud-based authoritative DNS solution.|
|[EdgeWorkers](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-edgeworkers)|Execute JavaScript functions at the edge to optimize site performance and customize web experiences.|
|[Global Traffic Management](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-gtm)|Use load balancing to manage website and mobile performance demands.|
|[Identity and Access Management](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-iam)|Create users and groups, and define policies that manage access to your Akamai applications.|
|[Image and Video Manager](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-ivm)|Automate image and video delivery optimizations for your website visitors.|
|[Network Lists](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-network-lists)|Automate the creation, deployment, and management of lists used in ​Akamai​ security products.|
|[Property](https://techdocs.akamai.com/terraform/v4.1/docs/set-up-property-provisioning)|Define rules and behaviors that govern your website delivery based on match criteria.|
|[Application Security](https://techdocs.akamai.com/terraform/v5.0/docs/configure-appsec)|Manage security configurations, security policies, match targets, rate policies, and firewall rules.|
|[Bot Manager](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-botman)|Identify, track, and respond to bot activity on your domain or in your app.|
|[Certificates](https://techdocs.akamai.com/terraform/v5.0/docs/cps-integration-guide)|Full life cycle management of SSL certificates for your ​Akamai​ CDN applications.|
|[Cloudlets](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-cloudlets)|Solve specific business challenges using value-added apps that complement ​Akamai​'s core solutions.|
|[DataStream](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-datastream)|Monitor activity on the ​Akamai​ platform and send live log data to a destination of your choice.|
|[Edge DNS](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-edgedns)|Replace or augment your DNS infrastructure with a cloud-based authoritative DNS solution.|
|[EdgeWorkers](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-edgeworkers)|Execute JavaScript functions at the edge to optimize site performance and customize web experiences.|
|[Global Traffic Management](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-gtm)|Use load balancing to manage website and mobile performance demands.|
|[Identity and Access Management](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-iam)|Create users and groups, and define policies that manage access to your Akamai applications.|
|[Image and Video Manager](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-ivm)|Automate image and video delivery optimizations for your website visitors.|
|[Network Lists](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-network-lists)|Automate the creation, deployment, and management of lists used in ​Akamai​ security products.|
|[Property](https://techdocs.akamai.com/terraform/v5.0/docs/set-up-property-provisioning)|Define rules and behaviors that govern your website delivery based on match criteria.|

### Get contract and group IDs

Expand Down
Loading

0 comments on commit 3e79eb5

Please sign in to comment.