pulumi-aws
pulumi-aws copied to clipboard
deprecated warning for aws.secretsmanager.get_secret
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
- Create a project with:
import pulumi
import pulumi_aws as aws
secret_arn = aws.secretsmanager.get_secret(name="...").arn
- Run
pulumi up
- 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
I'm seeing this also - I believe it just started happening after upgrading from Pulumi 3.28 to 3.29.1.
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