Skip to content

Pass the AWS_ROLE_ARN to the config #114

@shivank2501

Description

@shivank2501

Hello

How do I pass the AWS_ROLE_ARN to the config? The role I am using has permissions to put objects in the bucket.

Values.yaml

privatebin:
image:
repository: privatebin/nginx-fpm-alpine

configs:
conf.php: |-
[main]
fileupload = false
discussion = false
password = false
defaultformatter = "plaintext"
template = "bootstrap-dark"
syntaxhighlightingtheme = "sons-of-obsidian"
languageselection = false
zerobincompatibility = false
debug = false
qrcode = false
burnafterreading = false
[expire]
default = "1day"
[expire_options]
1day = 86400
[formatter_options]
plaintext = "Plain Text"
[traffic]
limit = 0
header = "X_FORWARDED_FOR"
dir = PATH "data"
[purge]
limit = 0
batchsize = 0
dir = PATH "data"
[model]
class = S3Storage
AWS_ROLE_ARN = "role_name"
[model_options]
region = "eu-central-1"
bucket = "test-bucket"
prefix = "privatebin/pastes"

Error:
Could not create paste: Error executing "HeadObject" on "https://test-bucket-eu-central-1.s3.eu-central-1.amazonaws.com/privatebin/pastes/efd1f42ac818444f"; AWS HTTP error: Client error: HEAD https://test-bucket-eu-central-1.s3.eu-central-1.amazonaws.com/privatebin/pastes/efd1f42ac818444f resulted in a 403 Forbidden response (client): 403 Forbidden (Request-ID: KEJHJHRSJ8QCA730) -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions