Legacy way of generating S3 backend config files.
Type | Name and description |
---|---|
java.lang.Object |
awsRegion |
java.lang.Object |
destinationDir |
java.lang.Object |
remoteStateName |
java.lang.Object |
s3BucketName |
java.lang.Object |
templateFile |
java.lang.Object |
textTemplate |
java.util.Map<java.lang.String, java.lang.Object> |
tokens |
Constructor and description |
---|
RemoteStateAwsS3ConfigGenerator
(TaskProvider<RemoteStateConfigGenerator> linkedTask) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addTokenProvider(Provider<java.util.Map<java.lang.String, java.lang.Object>> tokenProvider) |
|
void |
delimiterTokenPair(java.lang.String begin, java.lang.String end) |
|
Provider<java.lang.String> |
getAwsRegion() Get AWS region used for remote storage. |
|
Provider<java.io.File> |
getBackendConfigFile() |
|
java.lang.String |
getBeginToken() |
|
Provider<java.io.File> |
getDestinationDir() |
|
java.lang.String |
getEndToken() |
|
Provider<java.lang.String> |
getRemoteStateName() The name that will be used to identify remote state. |
|
Provider<java.lang.String> |
getS3BucketName() The S3 bucket used for state storage |
|
Provider<java.io.File> |
getTemplateFile() |
|
Provider<java.lang.String> |
getTextTemplate() |
|
java.util.Map<java.lang.String, java.lang.Object> |
getTokens() Returns the current set of tokens |
|
void |
s3Spec(Action<RemoteStateS3Spec> spec) Configures a RemoteStateS3Spec. |
|
void |
s3Spec(groovy.lang.Closure spec) Configures a RemoteStateS3Spec. |
|
void |
setAwsRegion(java.lang.Object region) The AWS region used for remote state. |
|
void |
setDestinationDir(java.lang.Object dir) |
|
void |
setRemoteStateName(java.lang.Object rsn) Sets a new remote state name |
|
void |
setS3BucketName(java.lang.Object bucketName) Sets the S3 bucket used for state storage. |
|
void |
setTemplateFile(java.lang.Object file) |
|
void |
setTextTemplate(java.lang.Object text) |
|
void |
setTokens(java.util.Map<java.lang.String, java.lang.Object> newTokens) |
|
void |
token(java.lang.String key, java.lang.Object value) |
|
void |
tokens(java.util.Map<java.lang.String, java.lang.Object> moreTokens) |
Get AWS region used for remote storage.
The name that will be used to identify remote state.
The S3 bucket used for state storage
Returns the current set of tokens For legacy purposes the following tokens are added as aliases.
Configures a RemoteStateS3Spec.
spec
- Action to configure specConfigures a RemoteStateS3Spec.
spec
- Closure to configure spec The AWS region used for remote state.
Sets this as a token called aws_region
.
region
- Anything convertible to a string. Sets a new remote state name
Sets this as a token called remote_state_name
rsn
- Anything that can be lazy-evaluated to a string. Sets the S3 bucket used for state storage.
Sets this as a token called bucket_name
bucketName
- Bucket nameGroovy Documentation