Vijay Reddy
Vijay Reddy

Reputation: 125

Could not find an option to pass parameter `CallerReference` in Terraform resource `aws_cloudfront_origin_access_identity`

We are in the way to migrate from api calls to terraform to spin resources/accesses/policies in aws. I was bit struct in a place where I could not find an option to pass CallerReference to aws terraform resource aws_cloudfront_origin_access_identity.

We have this option using api: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateCloudFrontOriginAccessIdentity.html

Do we have any custom options for passing the same in other ways?

Upvotes: 1

Views: 126

Answers (1)

Marcin
Marcin

Reputation: 238687

If its not directly supported by TF, you can always use local-exec with AWS CLI to create your origin identity.

Upvotes: 1

Related Questions