simple example of using AWS SDK for Go to assume role to access ECR in a separate account
aws assumerole for ECR in Golang