deploytf

package
v0.0.0-...-8922439 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 45 Imported by: 0

README

Nitric AWS Terraform Provider

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsActionsMap map[resourcespb.Action][]string = map[resourcespb.Action][]string{
	resourcespb.Action_BucketFileList: {
		"s3:ListBucket",
	},
	resourcespb.Action_BucketFileGet: {
		"s3:GetObject",
	},
	resourcespb.Action_BucketFilePut: {
		"s3:PutObject",
	},
	resourcespb.Action_BucketFileDelete: {
		"s3:DeleteObject",
	},
	resourcespb.Action_TopicPublish: {
		"sns:GetTopicAttributes",
		"sns:Publish",
		"states:StartExecution",
		"states:StateSyncExecution",
	},
	resourcespb.Action_KeyValueStoreRead: {
		"dynamodb:GetItem",
		"dynamodb:BatchGetItem",
		"dynamodb:Scan",
	},
	resourcespb.Action_KeyValueStoreWrite: {
		"dynamodb:UpdateItem",
		"dynamodb:PutItem",
	},
	resourcespb.Action_KeyValueStoreDelete: {
		"dynamodb:DeleteItem",
	},
	resourcespb.Action_SecretAccess: {
		"secretsmanager:GetSecretValue",
	},
	resourcespb.Action_SecretPut: {
		"secretsmanager:PutSecretValue",
	},
	resourcespb.Action_WebsocketManage: {
		"execute-api:ManageConnections",
	},
	resourcespb.Action_QueueEnqueue: {
		"sqs:SendMessage",
		"sqs:GetQueueAttributes",
		"sqs:GetQueueUrl",
		"sqs:ListQueueTags",
	},
	resourcespb.Action_QueueDequeue: {
		"sqs:ReceiveMessage",
		"sqs:DeleteMessage",
		"sqs:GetQueueAttributes",
		"sqs:GetQueueUrl",
		"sqs:ListQueueTags",
	},
}

Functions

func ActionsToAwsActions

func ActionsToAwsActions(actions []resourcespb.Action) []string

Types

type ApiGateway

type ApiGateway struct {
	GatewayURL *string `json:"gateway_url"`
}

type Domain

type Domain struct {
	Name           string
	ZoneId         string
	CertificateArn *string
}

type NitricAwsTerraformProvider

type NitricAwsTerraformProvider struct {
	*deploy.CommonStackDetails
	Stack tfstack.Stack

	Vpc vpc.Vpc
	Rds rds.Rds

	AwsConfig      *common.AwsConfig
	Apis           map[string]api.Api
	Buckets        map[string]bucket.Bucket
	Topics         map[string]topic.Topic
	HttpProxies    map[string]http_proxy.HttpProxy
	Schedules      map[string]schedule.Schedule
	Services       map[string]service.Service
	Secrets        map[string]secret.Secret
	Queues         map[string]queue.Queue
	KeyValueStores map[string]keyvalue.Keyvalue
	Websockets     map[string]websocket.Websocket
	Websites       map[string]website.Website

	EnableWebsites bool
	RootWebsite    RootWebsite

	provider.NitricDefaultOrder
}

func NewNitricAwsProvider

func NewNitricAwsProvider() *NitricAwsTerraformProvider

func (*NitricAwsTerraformProvider) Api

func (*NitricAwsTerraformProvider) ArnForResource

func (a *NitricAwsTerraformProvider) ArnForResource(resource *deploymentspb.Resource) ([]*string, error)

discover the arn of a deployed resource

func (*NitricAwsTerraformProvider) Bucket

Bucket - Deploy a Storage Bucket

func (*NitricAwsTerraformProvider) CdkTfModules

func (*NitricAwsTerraformProvider) GetGlobalTags

func (a *NitricAwsTerraformProvider) GetGlobalTags() *map[string]*string

func (*NitricAwsTerraformProvider) Http

func (*NitricAwsTerraformProvider) Init

func (a *NitricAwsTerraformProvider) Init(attributes map[string]interface{}) error

func (*NitricAwsTerraformProvider) KeyValueStore

// KeyValueStore - Deploy a Key Value tioStore

func (*NitricAwsTerraformProvider) NewCdn

function to create a new cdn

func (*NitricAwsTerraformProvider) Policy

func (*NitricAwsTerraformProvider) Post

Post - Called after all resources have been created, before the Pulumi Context is concluded

func (*NitricAwsTerraformProvider) Pre

func (*NitricAwsTerraformProvider) Queue

// Queue - Deploy a Queue

func (*NitricAwsTerraformProvider) RequiredProviders

func (a *NitricAwsTerraformProvider) RequiredProviders() map[string]interface{}

func (*NitricAwsTerraformProvider) ResourcesStore

func (a *NitricAwsTerraformProvider) ResourcesStore(stack cdktf.TerraformStack, accessRoleNames []string) error

func (*NitricAwsTerraformProvider) Schedule

// Schedule - Deploy a Schedule

func (*NitricAwsTerraformProvider) Secret

// Secret - Deploy a Secret

func (*NitricAwsTerraformProvider) Service

func (a *NitricAwsTerraformProvider) Service(stack cdktf.TerraformStack, name string, config *deploymentspb.Service, runtimeProvider provider.RuntimeProvider) error

func (*NitricAwsTerraformProvider) SqlDatabase

func (*NitricAwsTerraformProvider) Topic

func (*NitricAwsTerraformProvider) Website

Websites - Deploy a Website

func (*NitricAwsTerraformProvider) Websocket

type RootWebsite

type RootWebsite struct {
	Name          *string `json:"name"`
	IndexDocument *string `json:"index_document"`
	ErrorDocument *string `json:"error_document"`
}

type WebsiteConfig

type WebsiteConfig struct {
	BucketDomainName *string    `json:"bucket_domain_name"`
	BucketArn        *string    `json:"bucket_arn"`
	BucketId         *string    `json:"bucket_id"`
	BasePath         *string    `json:"base_path"`
	ChangedFiles     *[]*string `json:"changed_files"`
}

Directories

Path Synopsis
generated
api
api
api
api/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
bucket
bucket
bucket
bucket/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
cdn
cdn
cdn
cdn/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
domain
domain
domain
domain/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
http_proxy
http_proxy
http_proxy
http_proxy/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
keyvalue
keyvalue
keyvalue
keyvalue/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
parameter
parameter
parameter
parameter/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
policy
policy
policy
policy/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
queue
queue
queue
queue/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
rds
rds
rds
rds/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
schedule
schedule
schedule
schedule/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
secret
secret
secret
secret/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
service
service
service
service/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
sql
sql
sql
sql/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
stack
stack
stack
stack/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
topic
topic
topic
topic/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
vpc
vpc
vpc
vpc/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
website
website
website
website/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
websocket
websocket
websocket
websocket/jsii
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL