pulumi-aws icon indicating copy to clipboard operation
pulumi-aws copied to clipboard

deprecated warning for aws.secretsmanager.get_secret

Open fujiapple852 opened this issue 3 years ago • 1 comments

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already)

Issue details

Calling aws.secretsmanager.get_secret(...) results in deprecated warnings for attributes of GetSecretResult even if these attributes are not accessed:

warning: rotation_enabled is deprecated: Use the aws_secretsmanager_secret_rotation data source instead
warning: rotation_lambda_arn is deprecated: Use the aws_secretsmanager_secret_rotation data source instead
warning: rotation_rules is deprecated: Use the aws_secretsmanager_secret_rotation data source instead

pulumi: 3.18.1 pulumi-aws: 4.29.0

Steps to reproduce

  1. Create a project with:
import pulumi
import pulumi_aws as aws
secret_arn = aws.secretsmanager.get_secret(name="...").arn
  1. Run pulumi up
  2. Observe warnings:
warning: rotation_enabled is deprecated: Use the aws_secretsmanager_secret_rotation data source instead
warning: rotation_lambda_arn is deprecated: Use the aws_secretsmanager_secret_rotation data source instead
warning: rotation_rules is deprecated: Use the aws_secretsmanager_secret_rotation data source instead

fujiapple852 avatar Nov 24 '21 03:11 fujiapple852

I'm seeing this also - I believe it just started happening after upgrading from Pulumi 3.28 to 3.29.1.

ecmonsen avatar Apr 20 '22 16:04 ecmonsen

Also seeing:

    warning: rotation_enabled is deprecated: Use the aws_secretsmanager_secret_rotation data source instead
    warning: rotation_lambda_arn is deprecated: Use the aws_secretsmanager_secret_rotation data source instead

about:

$ pulumi about
CLI
Version      3.44.0
Go Version   go1.19.2
Go Compiler  gc

Plugins
NAME        VERSION
aws         5.13.0
aws-native  0.22.1-alpha.1661750811
awsx        1.0.0-beta.10
docker      3.4.1
python      unknown

Host
OS       darwin
Version  12.6
Arch     x86_64

This project is written in python: executable='/Users/ericpardee/.asdf/shims/python3' version='3.10.2

ericpardee avatar Oct 25 '22 18:10 ericpardee