Auth was the tricky part as the normal auth requires a browser session rather than taking it from the CLI prompt.
Step 1. Create Dockerfile
|
|
Step 2. Generate auth URL from your laptop and push into SSM
|
|
Step 3. Push the auth URL into SSM
Note: Auth URL looks like - force://……salesforce.comaws ssm put-parameter --name /SF/dev --value <auth_URL_here> --description 'some description' --type SecureString --key-id <KMS_key_id_here> --region <region_here> --overwrite
To list all the keys in the path:aws ssm get-parameters-by-path --path /SF/ --query 'Parameters[*].Name'
Step 4. Run auth within the docker container
|
|
you probably don’t need to worry about auth.txt if you’re using docker –rm or similar.