Provides a AWS Transfer AS2 Certificate resource.
resource "aws_transfer_certificate" "example" {
certificate = file("${path.module}/example.com/example.crt")
certificate_chain = file("${path.module}/example.com/ca.crt")
private_key = file("${path.module}/example.com/example.key")
description = "example"
usage = "SIGNING"
}
This resource supports the following arguments:
certificate
- (Required) The valid certificate file required for the transfer.certificate_chain
- (Optional) The optional list of certificate that make up the chain for the certificate that is being imported.description
- (Optional) A short description that helps identify the certificate.private_key
- (Optional) The private key associated with the certificate being imported.tags
- (Optional) A map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.usage
- (Required) Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.This resource exports the following attributes in addition to the arguments above:
arn
- The ARN of the certificatecertificate_id
- The unique identifier for the AS2 certificateactive_date
- An date when the certificate becomes activeinactive_date
- An date when the certificate becomes inactiveIn Terraform v1.5.0 and later, use an import
block to import Transfer AS2 Certificate using the certificate_id
. For example:
import {
to = aws_transfer_certificate.example
id = "c-4221a88afd5f4362a"
}
Using terraform import
, import Transfer AS2 Certificate using the certificate_id
. For example:
% terraform import aws_transfer_certificate.example c-4221a88afd5f4362a