Altinity / terraform-altinitycloud-connect-aws

Terraform module for connecting AWS accounts to Altinity.Cloud ☁️
https://registry.terraform.io/modules/Altinity/connect-aws/altinitycloud
Apache License 2.0
1 stars 1 forks source link

update the deprecated aws-iam-role argument #3

Open Elmo33 opened 2 months ago

Elmo33 commented 2 months ago
│ 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 commented 1 month ago

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