From ee99a6ff3427ef2e8f20e52a99769bb973e93dfd Mon Sep 17 00:00:00 2001 From: Sathvik Kumar Date: Wed, 8 Apr 2026 17:29:15 +1000 Subject: [PATCH 1/2] Update dynamic infrastructure AWS account commands --- .../dynamic-infrastructure/aws-accounts.md | 50 +++++++++++++++---- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md b/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md index ef556d0ee2..dc19ffed3a 100644 --- a/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md +++ b/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md @@ -1,28 +1,56 @@ --- layout: src/layouts/Default.astro pubDate: 2023-01-01 -modDate: 2023-01-01 -title: Create AWS account command -description: New-OctopusAwsAccount allows you to create an AWS account in Octopus from within a running deployment +modDate: 2026-04-08 +title: Create AWS account commands +description: New-OctopusAwsAccount and New-OctopusAwsOidcAccount allow you to create AWS accounts in Octopus from within a running deployment navOrder: 10 --- ## AWS account -Command: **_New-OctopusAwsAccount_** -_**New-OctopusAwsAccount** allows you to create an AWS account in Octopus from within a running deployment_ +Command: ***New-OctopusAwsAccount*** -| Parameters | Value | -|-------------------------------|------------------------------------------------------------------------------------------------------------| -| `-name` | Name for the AWS account | -| `-secretKey` | The AWS secret key to use when authenticating against Amazon Web Services. | -| `-accessKey` | The AWS access key to use when authenticating against Amazon Web Services. | -| `-updateIfExisting` | Will update an existing account with the same name, create if it doesn't exist | +***New-OctopusAwsAccount*** *allows you to create an AWS account in Octopus from within a running deployment* + +| Parameters | Value | +| ------------------- | -------------------------------------------------------------------------------- | +| `-name` | Name for the AWS account. | +| `-secretKey` | The AWS secret key to use when authenticating against Amazon Web Services. | +| `-accessKey` | The AWS access key to use when authenticating against Amazon Web Services. | +| `-region` | The AWS region to use for authentication (e.g. `us-east-1`). | +| `-updateIfExisting` | Will update an existing account with the same name, create if it doesn't exist. | Example: + ```powershell New-OctopusAwsAccount -name "My AWS Account" ` -secretKey "7U4MhdfjgcAk9niwPgXD81pTYY+fIvVsN3m" ` -accessKey "AKIAVY29QTUTKPJC3R5K" ` + -region "us-east-1" ` -updateIfExisting ``` + +## AWS OIDC account + +Command: ***New-OctopusAwsOidcAccount*** + +***New-OctopusAwsOidcAccount*** *allows you to create an AWS OIDC account in Octopus from within a running deployment* + +| Parameters | Value | +| ------------------- | -------------------------------------------------------------------------------- | +| `-name` | Name for the AWS OIDC account. | +| `-roleArn` | The Amazon Resource Name (ARN) of the role to assume. | +| `-sessionDuration` | The duration of the session in seconds. Defaults to `3600`. | +| `-region` | The AWS region to use for authentication (e.g. `us-east-1`). | +| `-updateIfExisting` | Will update an existing account with the same name, create if it doesn't exist. | + +Example: + +```powershell +New-OctopusAwsOidcAccount -name "My AWS OIDC Account" ` + -roleArn "arn:aws:iam::123456789012:role/my-role" ` + -sessionDuration "3600" ` + -region "ap-southeast-2" ` + -updateIfExisting +``` From a559ede4fef0b968534f17d0ff2ce1f39734717b Mon Sep 17 00:00:00 2001 From: Sathvik Kumar Date: Wed, 8 Apr 2026 17:36:38 +1000 Subject: [PATCH 2/2] Secret key spelling error lol --- .../deployment-targets/dynamic-infrastructure/aws-accounts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md b/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md index dc19ffed3a..c8d4449e93 100644 --- a/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md +++ b/src/pages/docs/infrastructure/deployment-targets/dynamic-infrastructure/aws-accounts.md @@ -25,7 +25,7 @@ Example: ```powershell New-OctopusAwsAccount -name "My AWS Account" ` - -secretKey "7U4MhdfjgcAk9niwPgXD81pTYY+fIvVsN3m" ` + -secretKey "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" ` -accessKey "AKIAVY29QTUTKPJC3R5K" ` -region "us-east-1" ` -updateIfExisting