简体   繁体   English

terraform 中的 Glue_Job 访问被拒绝

[英]Access Denied for Glue_Job in terraform

I tried to use resource aws_glue_job, but as soon as it's prepared to be launched, an error is shown as follows:我尝试使用资源aws_glue_job,但是当它准备启动时,错误显示如下:

│ Error: error creating Glue Job (job): AccessDeniedException: Account 411xxxxxxxx (Account id) is denied access.
│ 
│   with aws_glue_job.job,
│   on main.tf line 94, in resource "aws_glue_job" "job":
│   94: resource "aws_glue_job" "job" {

I checked the policies and apparently is okay.我检查了政策,显然没问题。 What might be doing it?可能在做什么?

For some reason my issue was solved by creating and using a new account.出于某种原因,我的问题通过创建和使用新帐户得到了解决。 This account being used previously was for test, that is why I did have no problems by changing It to a new one以前使用的这个帐户是用于测试的,这就是为什么我将它更改为新帐户确实没有问题

I had the exact same problem.我有同样的问题。 Logging with TF_LOG ( debbuging_terraform ) helped me to be sure that this was not being caused by anything that I could fix.使用 TF_LOG ( debbuging_terraform ) 记录帮助我确定这不是由我可以修复的任何问题引起的。 If you have already verified policies (For example I attached AWSGlueConsoleFullAccess policy to the role creating glue job) and you have also verified that aws provider is correct, see: provider .如果您已经验证了策略(例如,我将 AWSGlueConsoleFullAccess 策略附加到创建粘合作业的角色)并且您还验证了 aws provider 是正确的,请参阅: provider You can open a ticket with billing & account and they will escalate this properly.您可以开具账单和账户的票证,他们会适当地升级。 They helped me and now I am able to create glue jobs again with the same account.他们帮助了我,现在我可以使用同一个帐户再次创建粘合作业。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM