Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the deprecated aws-iam-role argument #3

Open
Elmo33 opened this issue Sep 23, 2024 · 1 comment
Open

update the deprecated aws-iam-role argument #3

Elmo33 opened this issue Sep 23, 2024 · 1 comment

Comments

@Elmo33
Copy link

Elmo33 commented Sep 23, 2024

│ Warning: Argument is deprecated
│ 
│   with module.altinitycloud_connect_aws.aws_iam_role.this,
│   on .terraform/modules/altinitycloud_connect_aws/iam.tf line 1, in resource "aws_iam_role" "this":
│    1: resource "aws_iam_role" "this" {
│ 
│ Use the aws_iam_role_policy resource instead. If Terraform should exclusively manage all inline policy associations (the current behavior of this argument), use the aws_iam_role_policies_exclusive resource as well.
│ 
│ (and one more similar warning elsewhere)
@Elmo33
Copy link
Author

Elmo33 commented Oct 17, 2024

more deprecated arguments:

            3s 832ms                    [bash] ╷
            3s 832ms                    [bash] │ Warning: Argument is deprecated
            3s 832ms                    [bash] │ 
            3s 832ms                    [bash] │   with module.altinitycloud_connect_aws.aws_iam_role.this,
            3s 832ms                    [bash] │   on .terraform/modules/altinitycloud_connect_aws/iam.tf line 46, in resource "aws_iam_role" "this":
            3s 832ms                    [bash] │   46:   managed_policy_arns = [
            3s 832ms                    [bash] │   47:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/IAMFullAccess",
            3s 832ms                    [bash] │   48:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonEC2FullAccess",
            3s 832ms                    [bash] │   49:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonVPCFullAccess",
            3s 832ms                    [bash] │   50:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonS3FullAccess",
            3s 832ms                    [bash] │   51:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonRoute53FullAccess",
            3s 832ms                    [bash] │   52:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AWSLambda_FullAccess",
            3s 832ms                    [bash] │   53:     # for aws ssm start-session
            3s 832ms                    [bash] │   54:     "arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonSSMManagedInstanceCore",
            3s 832ms                    [bash] │   55:   ]
            3s 832ms                    [bash] │ 
            3s 832ms                    [bash] │ The managed_policy_arns argument is deprecated. Use the aws_iam_role_policy_attachments_exclusive resource instead.
            3s 832ms                    [bash] ╵

aws provider version : 5.72.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant