This Go package is designed to simplify the creation of AWS ECS (Elastic Container Service) resources using Pulumi. It provides an intuitive API to define ECS services, task definitions, clusters, and associated resources, abstracting away the complexity of the underlying infrastructure setup.
- Abstraction Layer: Easily create and manage AWS ECS resources without directly dealing with Pulumi details.
- Concise API: Intuitive API design for defining ECS services, task definitions, and clusters with minimal boilerplate.
- Documentation: Well-documented codebase with inline comments and comprehensive API documentation generated with godoc.
To use this package in your Go project, simply import it as a dependency:
go get github.com/janduursma/pulumi-component-aws-ecs
Here's a basic example of how to use this package to create an AWS ECS service:
package main
import (
"fmt"
"github.com/janduursma/pulumi-component-aws-ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
// Define your ECS service
serviceArgs := ecs.ServiceConfig{
Name: "test-service",
ClusterArn: "<cluster-arn>",
TaskDefinition: "<task-definition>",
DesiredCount: 2,
// Provide other arguments here
}
// Create the ECS service
var ctx *pulumi.Context
_, err := ecs.NewService(ctx, serviceArgs)
if err != nil {
fmt.Println(err)
}
}
The Go documentation for this project has been automatically generated using Doc2Go and is hosted on my personal domain. You can visit it here.
This project is licensed under the MIT License.