简体   繁体   English

在 Terraform 资源“aws_cloudfront_origin_access_identity”中找不到用于传递参数“CallerReference”的选项

[英]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.

相关问题 AWS CloudFront:来自源的字体已被跨源资源共享策略阻止加载 - AWS CloudFront: Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy 如何限制对 CloudFront 的原始访问? - How to restrict access to origin for CloudFront only? Cloudfront 在没有公共访问的情况下为 S3 存储桶源提供通过 AWS CDK Python 创建的访问被拒绝的响应 - Cloudfront give Access denied response created through AWS CDK Python for S3 bucket origin without public Access 使用 Terraform 创建 AWS 资源组 - Create an AWS Resource Group with Terraform angular aws-sdk - 对预检请求的响应未通过访问控制检查:资源上不存在“Access-Control-Allow-Origin”header - angular aws-sdk - Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the resource 我可以将变量传递给使用 terraform 和 user_data 创建的 AWS EC2 实例吗? 或者更新一个已经创建的资源 - Can i pass variables to AWS EC2 instances created with terraform and user_data? Or update an already created resource Terraform aws 物联网站点资源 - Terraform aws iot sitewise resource Terraform Cloudfront InvalidViewerCertificate - Terraform Cloudfront InvalidViewerCertificate Cloudfront 自定义来源分发返回 502“错误无法满足请求。” 对于某些网址 - Cloudfront custom-origin distribution returns 502 "ERROR The request could not be satisfied." for some URLs 在 Lambda 中找不到模块“aws-cloudfront-sign” - Cannot find module 'aws-cloudfront-sign' in Lambda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM