dry-answer-66872
12/22/2021, 6:28 AMbucket=aws_s3control_bucket["example"]["arn"], --> Bucket ARN
little-cartoon-10569
12/22/2021, 6:48 AMaws_s3control_bucket
.dry-answer-66872
12/22/2021, 7:03 AMlifecyle_pol = aws.s3control.BucketLifecycleConfiguration("move_glacier",
bucket=aws_s3control_bucket[mybucket.bucket_arn],
rules=[
aws.s3control.BucketLifecycleConfigurationRuleArgs(
expiration=aws.s3control.BucketLifecycleConfigurationRuleExpirationArgs(
bucket=gbis3_bucket.bucket_id,
days=365,
),
),
])
and getting this
NameError: name 'aws_s3control_bucket' is not definedlittle-cartoon-10569
12/22/2021, 7:18 AMbucket=aws_s3control_bucket["example"]["arn"],
The bucket object is actually aws_s3control_bucket["example"]
.
So if your bucket object is my_bucket
, then the code would read
bucket=my_bucket["arn"],