@groovy.transform.CompileStatic class RemoteStateS3 extends RemoteStateS3Spec
An extension that is added to TerraformRemoteStateExtension.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
NAME |
Fields inherited from class | Fields |
---|---|
class RemoteStateS3Spec |
TOKEN_ASSUME_ROLE_POLICY, TOKEN_BUCKET, TOKEN_DYNAMODB_TABLE_ARN, TOKEN_REGION, TOKEN_REMOTE_STATE_NAME |
Constructor and description |
---|
RemoteStateS3
(Project project) Constructs a description of Terraform remote state stored in S3. |
Type Params | Return Type | Name and description |
---|---|---|
|
static RemoteStateS3 |
findExtension(Project project) Utility method to find this extension on a project. |
|
static RemoteStateS3 |
findExtension(Project project, java.lang.String sourceSetName) Utility to find this extension on a terraform source set. |
|
void |
follow(RemoteStateS3Provider s3) Make settings follow that of another RemoteStateS3 provider. |
|
Provider<java.util.Map<java.lang.String, ?>> |
getAttributesMap() Returns a provider to a map of all S3 backend attributes that could possible be configured. |
Constructs a description of Terraform remote state stored in S3.
project
- Project this is associated with.
The object reference is not cached, so it is configuration-cache safe.Utility method to find this extension on a project.
project
- Project contextUtility to find this extension on a terraform source set.
project
- Project contextsourceSetName
- Name of source set. Make settings follow that of another RemoteStateS3
provider.
Following a provider will apply those items first and then customise with any local settings.
s3
- Another S3 state provider.Returns a provider to a map of all S3 backend attributes that could possible be configured.