Skip to main content

AwsServerModuleSchema

AwsServerModuleSchema is the input schema for the AwsServerModule module: what a server's code may reach, and its network rules.

@group

Modules/Server/AwsServer

@see

AwsServerModule to learn more about the AwsServerModule module.

Index

Properties

account

account: Account

The AWS account the server belongs to.

optionaldynamodb

The DynamoDB tables the server's code may reach. See AwsServerDynamoDBAccessSchema.

optionaliamStatements

iamStatements?: AwsServerIamStatementSchema[] = []

IAM statements for what the server's code may reach outside octo. Grant a table, bucket or function octo manages with dynamodb, s3 or lambda instead. See AwsServerIamStatementSchema.

optionallambda

The Lambda functions the server's code may invoke. See AwsServerLambdaAccessSchema.

optionals3

s3?: { accessPrefixes: AwsServerS3AccessPrefixSchema[]; service: Service }[] = []

The S3 buckets the server's code may reach, each a bucket and the prefixes in it:

  • s3.service - the bucket, from AwsS3StorageServiceModule.
  • s3.accessPrefixes - the prefixes and what the server may do under each. See AwsServerS3AccessPrefixSchema.

optionalsecurityGroupRules

securityGroupRules?: AwsSecurityGroupAnchorRuleSchema[] = []

Network rules for the server, which an execution in a network applies to its security group; a Lambda execution ignores them. See AwsSecurityGroupAnchorRuleSchema.

serverKey

serverKey: string

The server's name, unique in the app, e.g. checkout. It is part of the context of the server's deployments and executions.