test - CloudFormation Command Line Interface

test

Description

Performs contract tests on the handlers of a resource provider.

Synopsis

cfn test [--endpoint <value>] [--function-name <value>] [--region <value>] [--role-arn <value>]

Options

--endpoint <value>

The endpoint at which the type can be invoked. Alternately, you can also specify an actual Lambda endpoint and function name in your AWS account.

Default: http://127.0.0.1.3001

--function-name <value>

The logical lambda function name in the SAM template. Alternately, you can also specify an actual Lambda endpoint and function name in your AWS account.

Default: TestEntrypoint

--region <value>

The region to use for temporary credentials.

Default: us-east-1

--role-arn <value>

The Amazon Resource Name (ARN) of the IAM execution role for the contract tests to assume and use when performing operations.

If you do not specify an execution role, the contract tests use the environment credentials or the credentials specified in the Boto 3 credentials chain.

Output