Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Use IAM Roles instead credentials #41

Open
satheler opened this issue Aug 17, 2021 · 4 comments
Open

Use IAM Roles instead credentials #41

satheler opened this issue Aug 17, 2021 · 4 comments

Comments

@satheler
Copy link

My WordPress site is on EC2 on Amazon Web Services, have some way to use IAM Roles instead of credentials?

@leonstafford
Copy link

If it's not already in this repo, the devs can feel free to grab what we're using in WP2Static S3 Addon to do other AWS credential options, I think we handle profiles and roles.

@HammenWS
Copy link
Member

@satheler I think you can configure your EC2 instance in such a way that you can access the static site s3 bucket via a role. In that case you can leave the aws key and secret empty.

@satheler
Copy link
Author

@satheler I think you can configure your EC2 instance in such a way that you can access the static site s3 bucket via a role. In that case you can leave the aws key and secret empty.

Unfortunately not working 😕.

image

@HammenWS
Copy link
Member

@satheler Where you define you SIMPLY_STATIC_DEPLOY_CONFIG the keys should be present. The values can be null, but the keys should be there.

define('SIMPLY_STATIC_DEPLOY_CONFIG', [
    'aws' => [
        'key' => '...', # AWS access key
        'secret' => '...', # AWS secret key
        'region' => '...', # AWS region
        'bucket' => '...', # S3 bucket
        'bucket_acl' => '...', # S3 bucket ACL (optional, defaults to `public-read`)
        'distribution' => '...', # CloudFront distribution ID (optional, step is skipped when empty)
        'endpoint' => '...', # For usage with providers other than AWS (optional)
    ],
    'url' => '...', # Website url (used for displaying url after deploy is finished)
]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants