Skip to content

Instantly share code, notes, and snippets.

@mizzy
Created October 1, 2021 13:35
Show Gist options
  • Save mizzy/98fa264604cfd23bee559e83499f4cda to your computer and use it in GitHub Desktop.
Save mizzy/98fa264604cfd23bee559e83499f4cda to your computer and use it in GitHub Desktop.
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.NewLogGroup(ctx, "sock_shop", &cloudwatch.LogGroupArgs{
Name: pulumi.String("sock-shop"),
RetentionInDays: pulumi.Int(7),
}, pulumi.Protect(true))
if err != nil {
return err
}
return nil
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment