Hi guys!
I’ve been trying to configure the “aws-ssm” plugin in my local waypoint environment. But I can’t access any parameters.
I created the config using this command:
waypoint config source-set -type=aws-ssm -config="region=us-east-1" -config="assume_role_arn=arn:aws:iam::ACCOUNTID:role/waypoint-role" -config="assume_role_session_name=waypoint"
I want to log in using roles. And my local user can assume this role if I use the sts command.
When I run the waypoint up command, I can’t access the configs I’ve set:
config {
env = {
MYSQL_ENDPOINT = configdynamic("aws-ssm", {
path = "/dev/us-east-1/app/golang/MYSQL_ENDPOINT"
}),
In my code I’ve been using:
fmt.Printf("DNS of DB: %s", os.Getenv("MYSQL_ENDPOINT"))
and it comes up empty.
What am I doing wrong? Do I need anything else? Is my configuration wrong?
PS:
I’m using static_environment
, as such:
deploy {
use "docker" {
static_environment = {
"ENV": "dev",
"LOG_LEVEL": "debug"
}
}
}
and it works when I try to os.Getenv
.