Skip to content

Commit e62d60c

Browse files
authored
DXE-5227 Merge pull request #96 from akamai/release/v2.3.0
Release/v2.3.0
2 parents 21d171d + d32302b commit e62d60c

File tree

100 files changed

+22731
-410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+22731
-410
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bin/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# RELEASE NOTES
22

3+
## 2.3.0 (Aug 6, 2025)
4+
5+
### FEATURES/ENHANCEMENTS:
6+
7+
* mTLS Keystore
8+
* Added the `export-mtls-keystore <certificate_id> [<group_id> <contract_id>]` command that generates the configuration for the
9+
`akamai_mtlskeystore_client_certificate_akamai` and `akamai_mtlskeystore_client_certificate_third_party` resources.
10+
11+
* PAPI
12+
* Added support for the new rule formats `v2025-05-30` and `v2025-07-07`.
13+
314
## 2.2.0 (May 28, 2025)
415

516
### FEATURES/ENHANCEMENTS:

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Global Flags:
155155
<li><a href="#exportedgeworker">export-edgeworker</a></li>
156156
<li><a href="#exportiam">export-iam</a></li>
157157
<li><a href="#exportimaging">export-imaging</a></li>
158+
<li><a href="#exportmtlskeystore">export-mtls-keystore</a></li>
158159
<li><a href="#exportproperty">export-property</a></li>
159160
<li><a href="#exportproperty-include">export-property-include</a></li>
160161
<li><a href="#exportzone">export-zone</a></li>
@@ -413,6 +414,24 @@ akamai terraform export-imaging "C-0N7RAC7" "my-policy-set_1234"
413414
| `--policy-as-hcl` (boolean) | Exports your imaging policy with rules in HCL format. | `akamai terraform export-imaging --policy-as-hcl "C-0N7RAC7" "my-policy-set_12345"` |
414415
| `--policy-json-dir` (string) | Sets the path to a directory in which you want to store your policy in JSON format. The default is your active directory.| `akamai terraform export-imaging --policy-json-dir "path/to/your/directory" "C-0N7RAC7" "my-policy-set_12345"` |
415416

417+
## export‑mtls-keystore
418+
419+
Export a Terraform configuration for your mTLS client certificate.
420+
421+
> **Note:** For third-party certificates, version information is always exported without being commented out as there is no automatic rotation. You can manually update the version fields as needed before applying the configuration.
422+
423+
### Syntax
424+
425+
```shell
426+
akamai [global flags] terraform export-mtls-keystore [command flags] <certificate_id> [<group_id> <contract_id>]
427+
```
428+
429+
### Basic usage
430+
431+
```shell
432+
akamai terraform export-mtls-keystore 12345
433+
```
434+
416435
## export‑property
417436

418437
Export a Terraform configuration for your property along with its JSON-formatted rules, but without the includes. Use the [`export-property-include`](#exportproperty-include) command to export your includes.

cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"commands": [
66
{
77
"name": "terraform",
8-
"version": "2.2.0",
8+
"version": "2.3.0",
99
"description": "Export selected resources for faster adoption in Terraform",
1010
"bin": "https://github.com/akamai/cli-terraform/releases/download/v{{.Version}}/akamai-{{.Name}}-{{.Version}}-{{.OS}}{{.Arch}}{{.BinSuffix}}",
1111
"auto-complete": true,

cli/cli.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@ package cli
33

44
import (
55
"context"
6-
"errors"
76
"os"
87

98
sesslog "github.com/akamai/AkamaiOPEN-edgegrid-golang/v11/pkg/log"
109
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v11/pkg/session"
1110
"github.com/akamai/cli-terraform/v2/pkg/commands"
1211
"github.com/akamai/cli-terraform/v2/pkg/edgegrid"
1312
akacli "github.com/akamai/cli/v2/pkg/app"
14-
"github.com/akamai/cli/v2/pkg/color"
1513
"github.com/akamai/cli/v2/pkg/log"
1614
"github.com/akamai/cli/v2/pkg/terminal"
1715
"github.com/urfave/cli/v2"
1816
)
1917

2018
var (
2119
// Version holds current version of cli-terraform
22-
Version = "2.2.0"
20+
Version = "2.3.0"
2321
)
2422

2523
// Run initializes the cli and runs it
@@ -33,10 +31,7 @@ func Run() error {
3331
"Export selected resources for faster adoption in Terraform.",
3432
Version)
3533

36-
cmds, err := commands.CommandLocator()
37-
if err != nil {
38-
return errors.New(color.RedString("An error occurred initializing commands: %s", err))
39-
}
34+
cmds := commands.CommandLocator()
4035
if len(cmds) > 0 {
4136
app.Commands = append(cmds, app.Commands...)
4237
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/akamai/cli-terraform/v2
33
go 1.23.6
44

55
require (
6-
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.0.0
6+
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.1.0
77
github.com/akamai/cli/v2 v2.0.1
88
github.com/hashicorp/hcl/v2 v2.23.0
99
github.com/jinzhu/copier v0.4.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63n
66
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
77
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
88
github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
9-
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.0.0 h1:ot8yMzEm0Kx2LCTOzlM7zh4ASLFZ6H0iYhtIKolSujs=
10-
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.0.0/go.mod h1:rvh3imDA6EaQi+oM/GQHkQAOHbXPKJ7EWJvfjuw141Q=
9+
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.1.0 h1:h/33OxYLqBk0BYmEbSUy7MlvgQR/m1w1/7OJFKoPL1I=
10+
github.com/akamai/AkamaiOPEN-edgegrid-golang/v11 v11.1.0/go.mod h1:rvh3imDA6EaQi+oM/GQHkQAOHbXPKJ7EWJvfjuw141Q=
1111
github.com/akamai/cli/v2 v2.0.1 h1:K5624ReV3K12AehPF9GK/IOCRhUea1dRJoaVjj35m2k=
1212
github.com/akamai/cli/v2 v2.0.1/go.mod h1:FLUVPrBcP0sPEYy9HopagZWvKcAMwmJBHCe2WCiJgUM=
1313
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=

0 commit comments

Comments
 (0)