handsome-actor-1155
07/16/2019, 6:41 PMconst ecr = new aws.ecr.Repository("ecr", {
name: "stream-app/corrective-action-producer"
});
const ecrCreds = ecr.registryId.apply(async (registryId) => {
const credentials = await aws.ecr.getCredentials({
registryId: registryId,
});
const decodedCredentials = Buffer.from(credentials.authorizationToken, "base64").toString();
const [username, password] = decodedCredentials.split(":");
return { server: credentials.proxyEndpoint, username, password };
});
return new docker.Image("correctiveActionProducer", {
imageName: ecr.repositoryUrl,
build: "./",
registry: ecrCreds
});
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by