Skip to content

This Go package is designed to simplify the creation of AWS ECS (Elastic Container Service) resources using Pulumi.

License

Notifications You must be signed in to change notification settings

janduursma/pulumi-component-aws-ecs

Repository files navigation

Pulumi Component AWS ECS

License codecov

Overview

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.

Features

  • 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.

Installation

To use this package in your Go project, simply import it as a dependency:

go get github.com/janduursma/pulumi-component-aws-ecs

Usage

Example

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)
	}
}

Documentation

The Go documentation for this project has been automatically generated using Doc2Go and is hosted on my personal domain. You can visit it here.

Additional Resources

License

This project is licensed under the MIT License.

About

This Go package is designed to simplify the creation of AWS ECS (Elastic Container Service) resources using Pulumi.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages