Skip to content

AwsSecret

Bases: DuploTenantResourceV3

apply

Apply a service.

create

Create an AWS Secretmanager Secret Usage: cli usage

duploctl aws_secret create <name> -pval <value>

Parameters:

Name Type Description Default
name NAME

The name of the AWS Secret to create.

None
-pval/--parametervalue

Arbitrary text to set in the AWS secret.

required
-body

path to a raw json/yaml post body, e.g:

required

Returns:

Name Type Description
resource dict

The AWS secret object.

Raises:

Type Description
DuploError

If the AWS secret already exists.

delete

Delete a AwsSecret resource by name.

cli usage
duploctl awssecret delete <name>

Parameters:

Name Type Description Default
name NAME

The name of the AwsSecret resource to delete.

required

Returns:

Name Type Description
message dict

A success message.

Raises:

Type Description
DuploError

If the {{kind}} resource could not be found or deleted.

find

Find as AWS Secretmanager secret by name and return it's content

cli usage
duploctl aws_secret find <name>

Parameters:

Name Type Description Default
name NAME

The name of the AWS secret to find.

required
-show/--showsensitive

Display value of the secretstring field

required

Returns:

Name Type Description
resource dict

The AWS secret object.

Raises:

Type Description
DuploError

If the AWS secret could not be found.

list

Retrieve a List of AwsSecret resources

cli usage
duploctl awssecret list

Returns:

Name Type Description
list list

A list of AwsSecret.

update

Update an AWS Secretmanager secret. Usage: cli usage

duploctl aws_secret update <name> -pval <newvalue>

Parameters:

Name Type Description Default
name NAME

The name of the AWS secret to find.

None
-pval/--parametervalue

The new value for the AWS secret. This overwrites the existing value!

required

Returns:

Name Type Description
resource dict

The AWS secret object.

Raises:

Type Description
DuploError

If the AWS secret could not be found or doesn't exist.