CreateWorkloadIdentityProviderOutboundSigner
Attaches an AWS Private CA certificate authority to a workload identity provider as an X.509 outbound signer, in a slot that is empty. An outbound signer is the signing authority a provider uses to issue credentials of one format. It belongs to its provider and has no ARN of its own. IAM groups X.509 signers into slots by key algorithm.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
The new signer starts in IN_TRANSITION and begins signing after
SigningDelayInHours. Until then, the provider issues no X.509 credentials
from it. To see the new signer and its StartSigningTime, call GetWorkloadIdentityProvider or ListWorkloadIdentityProviderOutboundSigners.
If the slot for the certificate authority's key algorithm already holds any signer,
the request fails with EntityAlreadyExistsException. That includes a signer
that is disabled, VALIDATING or INACTIVE. To replace the
authority in a slot, use UpdateWorkloadIdentityProviderOutboundSigner. To free the slot, use DeleteWorkloadIdentityProviderOutboundSigner.
The certificate authority must meet all of the following requirements, and a
certificate authority that fails any of them returns
InvalidInputException:
-
It is in the US East (N. Virginia) AWS Region,
us-east-1. -
Its status is
ACTIVE. -
Its type is
ROOTorSUBORDINATE. A subordinate certificate authority must chain up to a root certificate authority, which is the certificate IAM publishes as the trust anchor. -
Its key algorithm is one of
EC_prime256v1,EC_secp384r1,EC_secp521r1,RSA_2048,RSA_3072orRSA_4096. ML-DSA and SM2 keys are not supported. -
It is a service-affiliated certificate authority created for use with IAM Workload Identity, with a
UsageModeofSERVICE_AFFILIATEDand a service affiliation code ofIAM_WORKLOAD_IDENTITY.
IAM chooses the signature algorithm from the certificate authority's key algorithm rather than from the certificate authority's configured signing algorithm:
-
EC_prime256v1signs withECDSA_SHA_256. -
EC_secp384r1signs withECDSA_SHA_384. -
EC_secp521r1signs withECDSA_SHA_512. -
RSA_2048signs withRSASSA_PKCS1_V1_5_SHA_256. -
RSA_3072andRSA_4096sign withRSASSA_PKCS1_V1_5_SHA_384.
IAM calls AWS Private CA with your credentials, so you need the
acm-pca permissions on the certificate authority. If the certificate
authority is in another account, that certificate authority's resource policy must
grant them too.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- OutboundSigner
-
The certificate authority to attach. Specify the
X509member.Type: WorkloadIdentityOutboundSignerConfiguration object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
- SigningDelayInHours
-
The number of hours before the new signer starts signing. During that time IAM publishes the signer's trust material, so verifiers can obtain it before the signer starts signing.
Default: 1.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 48.
Required: No
- WorkloadIdentityProviderArn
-
The Amazon Resource Name (ARN) of the workload identity provider.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Required: Yes
Errors
For information about the errors that are common to all actions, see Common Error Types.
- ConcurrentModification
-
The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
HTTP Status Code: 409
- EntityAlreadyExists
-
The request was rejected because it attempted to create a resource that already exists.
HTTP Status Code: 409
- InvalidInput
-
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
HTTP Status Code: 400
- NoSuchEntity
-
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
HTTP Status Code: 404
- ServiceFailure
-
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
Examples
Example – Attach a certificate authority as an X.509 signer
The new signer starts signing 24 hours after the call.
Sample Request
https://iam.amazonaws.com/?Action=CreateWorkloadIdentityProviderOutboundSigner
&WorkloadIdentityProviderArn=arn%3Aaws%3Aiam%3A%3A111122223333%3Aworkload-identity-provider%2FPaymentsProd
&OutboundSigner.X509.CertificateAuthorityId=a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
&OutboundSigner.X509.AccountId=111122223333
&SigningDelayInHours=24
&Version=2010-05-08
&AUTHPARAMS
Sample Response
<CreateWorkloadIdentityProviderOutboundSignerResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestId>
</ResponseMetadata>
</CreateWorkloadIdentityProviderOutboundSignerResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: