Access Service Token
Access Service Tokens are used for service-to-service communication when an application is behind Cloudflare Access.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessServiceToken;
import com.pulumi.cloudflare.AccessServiceTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myApp = new AccessServiceToken("myApp", AccessServiceTokenArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.minDaysForRenewal(30)
.name("CI/CD app renewed")
.build());
}
}
Content copied to clipboard
Import
If you are importing an Access Service Token you will not have the client_secret available in the state for use. The client_secret is only available once, at creation. In most cases, it is better to just create a new resource should you need to reference it in other resources.
$ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken example <account_id>/<service_token_id>
Content copied to clipboard
Properties
Link copied to clipboard
A secret for interacting with Access protocols. Modifying this attribute will force creation of a new resource.
Link copied to clipboard
Refresh the token if terraform is run within the specified amount of days before expiration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard