https://pulumi.com logo
#general
Title
# general
s

salmon-musician-20405

03/02/2022, 5:25 PM
Need some help . I have installed new pulumi version pulumi 3.25.0. But have problem with providers.
Copy code
In the middle of building stack the provider assumes a different role ( or provider is switched to different account, Eg: below code

provider = Provider(
        resource_name="different_account",
        region="eu-west-1",
        assume_role=ProviderAssumeRoleArgs(role_arn=role_arn),
    )
 self._JobScript = BucketObject(
            resource_name=f"{name}-glue-job-script",
            opts=ResourceOptions(depends_on=[self._rolePolicy], provider=provider),
            bucket=destination_bucket.name,
            key=f"glue-job-scripts/{glue_script.split('/')[-1]}",
            server_side_encryption="AES256",
            source=FileAsset(glue_script),
            tags=tagger.create_tags(f"{name}-glue-script"),
Fails while doing above operation and following error occurs - Access denied error

aws:s3:BucketObject test-ab40dc-glue-job-script creating failed '
'Diagnostics:'
Error uploading object to S3 bucket (test-ab40dc-curated): '
'AccessDenied: Access Denied'
g

great-queen-39697

03/02/2022, 8:10 PM
feel free to respond in either thread; just want to ensure we don't lose track of it!
78 Views