Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ terraform apply
- aws_iam_policy.billing_view_access: Refreshing state... (ID: arn:aws:iam::123456789012:policy/BillingViewAccess)
- aws_iam_policy.billing_full_access: Refreshing state... (ID: arn:aws:iam::123456789012:policy/BillingFullAccess)
- An execution plan has been generated and is shown below.
- Resource actions are indicated with the following symbols:
- -/+ destroy and then create replacement
- Terraform will perform the following actions:
- -/+ aws_iam_policy.billing_full_access (new resource required)
- id: "arn:aws:iam::123456789012:policy/BillingFullAccess" => <computed> (forces new resource)
- arn: "arn:aws:iam::123456789012:policy/BillingFullAccess" => <computed>
- description: "" => "Provides full access to billing resources" (forces new resource)
- name: "BillingFullAccess" => "BillingFullAccess"
- path: "/" => "/"
- policy: "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"VisualEditor0\",\n \"Effect\": \"Allow\",\n \"Action\": \"aws-portal:*\",\n \"Resource\": \"*\"\n }\n ]\n}" => "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"VisualEditor0\",\n \"Effect\": \"Allow\",\n \"Action\": \"aws-portal:*\",\n \"Resource\": \"*\"\n }\n ]\n}\n"
- Plan: 1 to add, 0 to change, 1 to destroy.
- Do you want to perform these actions?
- Terraform will perform the actions described above.
- Only 'yes' will be accepted to approve.
- Enter a value: yes
- aws_iam_policy.billing_full_access: Destroying... (ID: arn:aws:iam::123456789012:policy/BillingFullAccess)
- Error: Error applying plan:
- 1 error(s) occurred:
- * aws_iam_policy.billing_full_access (destroy): 1 error(s) occurred:
- * aws_iam_policy.billing_full_access: Error deleting IAM policy arn:aws:iam::123456789012:policy/BillingFullAccess: &awserr.requestError{awsError:(*awserr.baseError)(0xc4208f7740), statusCode:409, requestID:"c09a73f0-f07f-11e7-9e7a-8b2e04753e8d"}
- Terraform does not automatically rollback in the face of errors.
- Instead, your Terraform state file has been partially updated with
- any resources that successfully completed. Please address the error
- above and apply again to incrementally change your infrastructure.
Add Comment
Please, Sign In to add comment