Skip to content

Instantly share code, notes, and snippets.

@urothis
Created July 6, 2021 16:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
ContainerDefinitions = JsonSerializer.Serialize(new[] {
new Dictionary<string, object?> {
{"name", "first"},
{"image", "***.dkr.ecr.us-west-2.amazonaws.com/***:***"},
{"environment", new[] { new Dictionary<string, object> {
{"PG_ENDPOINT", "potato"},
{"PG_READ_ENDPOINT", "banana"},
{"ASPNETCORE_URLS", "test"}
}}
},
{"cpu", 10},
{"memory", 512},
{"essential", true},
{"portMappings", new[] {new Dictionary<string, object?> {
{"containerPort", 5000},
{"hostPort", 80}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment