Skip to content

Upload organisation logos ​

In order to upload the logos of the organisations in Luna, it is required to synchronize your local folder with the AWS S3 bucket. The bucket is created automatically by the BE when you deploy the environment. In the event of spinning up a new environment which has an existing bucket could be required to delete the bucket and deploy again.

How to synchronise a folder with a bucket ​

To synchronize your local folder with the a S3 bucket you require:

  • Be sure you have set up temporary AWS CLI credentials in terminal first and have the AWS Command Line Interface installed

  • The command to synchronize the folder with the bucket is:

    aws s3 sync <path local folder> s3://<bucket-name>/<key> –acl public-read

    Examples:

    aws s3 sync . s3://polaris-organisation-logos-and-digital-luna-bucket/LOGOS --acl public-read
    
    aws s3 sync . s3://staging-organisation-logos-and-digital-luna-bucket/LOGOS --acl public-read

    For more information See documentation

How to update organisation table paths ​

You require developer access or production access, depending on the table that you require to update. Run the script through the Luna CLI:

luna -e <environment> script run cli-scripts-legacy/index.js --modules cli-scripts-legacy -- update-organisation-with-logos -e <environment>

Example:

luna -e polaris script run cli-scripts-legacy/index.js --modules cli-scripts-legacy -- update-organisation-with-logos -e polaris

Made with ❤️ by the Luna team