octopusdeploy.AwsElasticContainerRegistry
Explore with Pulumi AI
This resource manages an AWS Elastic Container Registry in Octopus Deploy.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.AwsElasticContainerRegistry;
import com.pulumi.octopusdeploy.AwsElasticContainerRegistryArgs;
import com.pulumi.octopusdeploy.inputs.AwsElasticContainerRegistryOidcAuthenticationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AwsElasticContainerRegistry("example", AwsElasticContainerRegistryArgs.builder()
.accessKey("access-key")
.region("us-east-1")
.secretKey("secret-key")
.build());
var exampleWithOidc = new AwsElasticContainerRegistry("exampleWithOidc", AwsElasticContainerRegistryArgs.builder()
.oidcAuthentication(AwsElasticContainerRegistryOidcAuthenticationArgs.builder()
.role_arn("role_arn_value")
.session_duration(3600)
.subject_keys(
"feed",
"space")
.build())
.region("us-east-1")
.build());
}
}
resources:
example:
type: octopusdeploy:AwsElasticContainerRegistry
properties:
accessKey: access-key
region: us-east-1
secretKey: secret-key
exampleWithOidc:
type: octopusdeploy:AwsElasticContainerRegistry
properties:
oidcAuthentication:
role_arn: role_arn_value
session_duration: 3600
subject_keys:
- feed
- space
region: us-east-1
Create AwsElasticContainerRegistry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsElasticContainerRegistry(name: string, args: AwsElasticContainerRegistryArgs, opts?: CustomResourceOptions);
@overload
def AwsElasticContainerRegistry(resource_name: str,
args: AwsElasticContainerRegistryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AwsElasticContainerRegistry(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
access_key: Optional[str] = None,
name: Optional[str] = None,
oidc_authentication: Optional[AwsElasticContainerRegistryOidcAuthenticationArgs] = None,
package_acquisition_location_options: Optional[Sequence[str]] = None,
secret_key: Optional[str] = None,
space_id: Optional[str] = None)
func NewAwsElasticContainerRegistry(ctx *Context, name string, args AwsElasticContainerRegistryArgs, opts ...ResourceOption) (*AwsElasticContainerRegistry, error)
public AwsElasticContainerRegistry(string name, AwsElasticContainerRegistryArgs args, CustomResourceOptions? opts = null)
public AwsElasticContainerRegistry(String name, AwsElasticContainerRegistryArgs args)
public AwsElasticContainerRegistry(String name, AwsElasticContainerRegistryArgs args, CustomResourceOptions options)
type: octopusdeploy:AwsElasticContainerRegistry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AwsElasticContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AwsElasticContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AwsElasticContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsElasticContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsElasticContainerRegistryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsElasticContainerRegistryResource = new Octopusdeploy.AwsElasticContainerRegistry("awsElasticContainerRegistryResource", new()
{
Region = "string",
AccessKey = "string",
Name = "string",
OidcAuthentication = new Octopusdeploy.Inputs.AwsElasticContainerRegistryOidcAuthenticationArgs
{
Audience = "string",
RoleArn = "string",
SessionDuration = "string",
SubjectKeys = new[]
{
"string",
},
},
PackageAcquisitionLocationOptions = new[]
{
"string",
},
SecretKey = "string",
SpaceId = "string",
});
example, err := octopusdeploy.NewAwsElasticContainerRegistry(ctx, "awsElasticContainerRegistryResource", &octopusdeploy.AwsElasticContainerRegistryArgs{
Region: pulumi.String("string"),
AccessKey: pulumi.String("string"),
Name: pulumi.String("string"),
OidcAuthentication: &octopusdeploy.AwsElasticContainerRegistryOidcAuthenticationArgs{
Audience: pulumi.String("string"),
RoleArn: pulumi.String("string"),
SessionDuration: pulumi.String("string"),
SubjectKeys: pulumi.StringArray{
pulumi.String("string"),
},
},
PackageAcquisitionLocationOptions: pulumi.StringArray{
pulumi.String("string"),
},
SecretKey: pulumi.String("string"),
SpaceId: pulumi.String("string"),
})
var awsElasticContainerRegistryResource = new AwsElasticContainerRegistry("awsElasticContainerRegistryResource", AwsElasticContainerRegistryArgs.builder()
.region("string")
.accessKey("string")
.name("string")
.oidcAuthentication(AwsElasticContainerRegistryOidcAuthenticationArgs.builder()
.audience("string")
.roleArn("string")
.sessionDuration("string")
.subjectKeys("string")
.build())
.packageAcquisitionLocationOptions("string")
.secretKey("string")
.spaceId("string")
.build());
aws_elastic_container_registry_resource = octopusdeploy.AwsElasticContainerRegistry("awsElasticContainerRegistryResource",
region="string",
access_key="string",
name="string",
oidc_authentication={
"audience": "string",
"role_arn": "string",
"session_duration": "string",
"subject_keys": ["string"],
},
package_acquisition_location_options=["string"],
secret_key="string",
space_id="string")
const awsElasticContainerRegistryResource = new octopusdeploy.AwsElasticContainerRegistry("awsElasticContainerRegistryResource", {
region: "string",
accessKey: "string",
name: "string",
oidcAuthentication: {
audience: "string",
roleArn: "string",
sessionDuration: "string",
subjectKeys: ["string"],
},
packageAcquisitionLocationOptions: ["string"],
secretKey: "string",
spaceId: "string",
});
type: octopusdeploy:AwsElasticContainerRegistry
properties:
accessKey: string
name: string
oidcAuthentication:
audience: string
roleArn: string
sessionDuration: string
subjectKeys:
- string
packageAcquisitionLocationOptions:
- string
region: string
secretKey: string
spaceId: string
AwsElasticContainerRegistry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AwsElasticContainerRegistry resource accepts the following input properties:
- Region string
- The AWS region where the registry resides.
- Access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- Name string
- The name of this resource.
- Oidc
Authentication AwsElastic Container Registry Oidc Authentication - Package
Acquisition List<string>Location Options - Secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- Space
Id string - The space ID associated with this aws elastic container registry.
- Region string
- The AWS region where the registry resides.
- Access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- Name string
- The name of this resource.
- Oidc
Authentication AwsElastic Container Registry Oidc Authentication Args - Package
Acquisition []stringLocation Options - Secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- Space
Id string - The space ID associated with this aws elastic container registry.
- region String
- The AWS region where the registry resides.
- access
Key String - The AWS access key to use when authenticating against Amazon Web Services.
- name String
- The name of this resource.
- oidc
Authentication AwsElastic Container Registry Oidc Authentication - package
Acquisition List<String>Location Options - secret
Key String - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id String - The space ID associated with this aws elastic container registry.
- region string
- The AWS region where the registry resides.
- access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- name string
- The name of this resource.
- oidc
Authentication AwsElastic Container Registry Oidc Authentication - package
Acquisition string[]Location Options - secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id string - The space ID associated with this aws elastic container registry.
- region str
- The AWS region where the registry resides.
- access_
key str - The AWS access key to use when authenticating against Amazon Web Services.
- name str
- The name of this resource.
- oidc_
authentication AwsElastic Container Registry Oidc Authentication Args - package_
acquisition_ Sequence[str]location_ options - secret_
key str - The AWS secret key to use when authenticating against Amazon Web Services.
- space_
id str - The space ID associated with this aws elastic container registry.
- region String
- The AWS region where the registry resides.
- access
Key String - The AWS access key to use when authenticating against Amazon Web Services.
- name String
- The name of this resource.
- oidc
Authentication Property Map - package
Acquisition List<String>Location Options - secret
Key String - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id String - The space ID associated with this aws elastic container registry.
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsElasticContainerRegistry resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AwsElasticContainerRegistry Resource
Get an existing AwsElasticContainerRegistry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AwsElasticContainerRegistryState, opts?: CustomResourceOptions): AwsElasticContainerRegistry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key: Optional[str] = None,
name: Optional[str] = None,
oidc_authentication: Optional[AwsElasticContainerRegistryOidcAuthenticationArgs] = None,
package_acquisition_location_options: Optional[Sequence[str]] = None,
region: Optional[str] = None,
secret_key: Optional[str] = None,
space_id: Optional[str] = None) -> AwsElasticContainerRegistry
func GetAwsElasticContainerRegistry(ctx *Context, name string, id IDInput, state *AwsElasticContainerRegistryState, opts ...ResourceOption) (*AwsElasticContainerRegistry, error)
public static AwsElasticContainerRegistry Get(string name, Input<string> id, AwsElasticContainerRegistryState? state, CustomResourceOptions? opts = null)
public static AwsElasticContainerRegistry get(String name, Output<String> id, AwsElasticContainerRegistryState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:AwsElasticContainerRegistry get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- Name string
- The name of this resource.
- Oidc
Authentication AwsElastic Container Registry Oidc Authentication - Package
Acquisition List<string>Location Options - Region string
- The AWS region where the registry resides.
- Secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- Space
Id string - The space ID associated with this aws elastic container registry.
- Access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- Name string
- The name of this resource.
- Oidc
Authentication AwsElastic Container Registry Oidc Authentication Args - Package
Acquisition []stringLocation Options - Region string
- The AWS region where the registry resides.
- Secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- Space
Id string - The space ID associated with this aws elastic container registry.
- access
Key String - The AWS access key to use when authenticating against Amazon Web Services.
- name String
- The name of this resource.
- oidc
Authentication AwsElastic Container Registry Oidc Authentication - package
Acquisition List<String>Location Options - region String
- The AWS region where the registry resides.
- secret
Key String - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id String - The space ID associated with this aws elastic container registry.
- access
Key string - The AWS access key to use when authenticating against Amazon Web Services.
- name string
- The name of this resource.
- oidc
Authentication AwsElastic Container Registry Oidc Authentication - package
Acquisition string[]Location Options - region string
- The AWS region where the registry resides.
- secret
Key string - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id string - The space ID associated with this aws elastic container registry.
- access_
key str - The AWS access key to use when authenticating against Amazon Web Services.
- name str
- The name of this resource.
- oidc_
authentication AwsElastic Container Registry Oidc Authentication Args - package_
acquisition_ Sequence[str]location_ options - region str
- The AWS region where the registry resides.
- secret_
key str - The AWS secret key to use when authenticating against Amazon Web Services.
- space_
id str - The space ID associated with this aws elastic container registry.
- access
Key String - The AWS access key to use when authenticating against Amazon Web Services.
- name String
- The name of this resource.
- oidc
Authentication Property Map - package
Acquisition List<String>Location Options - region String
- The AWS region where the registry resides.
- secret
Key String - The AWS secret key to use when authenticating against Amazon Web Services.
- space
Id String - The space ID associated with this aws elastic container registry.
Supporting Types
AwsElasticContainerRegistryOidcAuthentication, AwsElasticContainerRegistryOidcAuthenticationArgs
- Audience string
- Audience to use when authenticating against Amazon Web Services.
- Role
Arn string - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- Session
Duration string - Assumed role session duration (in seconds)
- Subject
Keys List<string> - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
- Audience string
- Audience to use when authenticating against Amazon Web Services.
- Role
Arn string - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- Session
Duration string - Assumed role session duration (in seconds)
- Subject
Keys []string - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
- audience String
- Audience to use when authenticating against Amazon Web Services.
- role
Arn String - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- session
Duration String - Assumed role session duration (in seconds)
- subject
Keys List<String> - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
- audience string
- Audience to use when authenticating against Amazon Web Services.
- role
Arn string - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- session
Duration string - Assumed role session duration (in seconds)
- subject
Keys string[] - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
- audience str
- Audience to use when authenticating against Amazon Web Services.
- role_
arn str - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- session_
duration str - Assumed role session duration (in seconds)
- subject_
keys Sequence[str] - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
- audience String
- Audience to use when authenticating against Amazon Web Services.
- role
Arn String - The Amazon Resource Name (ARN) of the role that the caller is assuming.
- session
Duration String - Assumed role session duration (in seconds)
- subject
Keys List<String> - Keys to include in a deployment or runbook. Valid options are
space
,feed
.
Import
$ pulumi import octopusdeploy:index/awsElasticContainerRegistry:AwsElasticContainerRegistry [options] octopusdeploy_aws_elastic_container_registry.<name> <feed-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.