[英]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.我们正在从 api 调用迁移到 terraform 以在 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
.我在一个找不到将
CallerReference
传递给 aws terraform 资源aws_cloudfront_origin_access_identity
的选项的地方有点结构化。
We have this option using api: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateCloudFrontOriginAccessIdentity.html我们有这个选项使用 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?我们是否有任何自定义选项以其他方式传递相同内容?
If its not directly supported by TF, you can always use local-exec with AWS CLI to create your origin identity.如果 TF 不直接支持它,您始终可以将local-exec与 AWS CLI 结合使用来创建您的原始身份。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.