juju.Application
Explore with Pulumi AI
A resource that represents a single Juju application deployment from a charm. Deployment of bundles is not supported.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
this:
type: juju:Application
properties:
modelUuid: ${juju_model.development.uuid}
charms:
- name: ubuntu
channel: edge
revision: 24
series: trusty
resources:
gosherve-image: gatici/gosherve:1.0
units: 3
placement: 0,1,2
storageDirectives:
files: 101M
config:
external-hostname: '...'
Create Application Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
model_uuid: Optional[str] = None,
endpoint_bindings: Optional[Sequence[ApplicationEndpointBindingArgs]] = None,
constraints: Optional[str] = None,
charms: Optional[Sequence[ApplicationCharmArgs]] = None,
exposes: Optional[Sequence[ApplicationExposeArgs]] = None,
machines: Optional[Sequence[str]] = None,
config: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
resources: Optional[Mapping[str, str]] = None,
storage_directives: Optional[Mapping[str, str]] = None,
storages: Optional[Sequence[ApplicationStorageArgs]] = None,
trust: Optional[bool] = None,
units: Optional[float] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: juju:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var applicationResource = new Juju.Application("applicationResource", new()
{
ModelUuid = "string",
EndpointBindings = new[]
{
new Juju.Inputs.ApplicationEndpointBindingArgs
{
Space = "string",
Endpoint = "string",
},
},
Constraints = "string",
Charms = new[]
{
new Juju.Inputs.ApplicationCharmArgs
{
Name = "string",
Base = "string",
Channel = "string",
Revision = 0,
},
},
Exposes = new[]
{
new Juju.Inputs.ApplicationExposeArgs
{
Cidrs = "string",
Endpoints = "string",
Spaces = "string",
},
},
Machines = new[]
{
"string",
},
Config =
{
{ "string", "string" },
},
Name = "string",
Resources =
{
{ "string", "string" },
},
StorageDirectives =
{
{ "string", "string" },
},
Storages = new[]
{
new Juju.Inputs.ApplicationStorageArgs
{
Count = 0,
Label = "string",
Pool = "string",
Size = "string",
},
},
Trust = false,
Units = 0,
});
example, err := juju.NewApplication(ctx, "applicationResource", &juju.ApplicationArgs{
ModelUuid: pulumi.String("string"),
EndpointBindings: juju.ApplicationEndpointBindingArray{
&juju.ApplicationEndpointBindingArgs{
Space: pulumi.String("string"),
Endpoint: pulumi.String("string"),
},
},
Constraints: pulumi.String("string"),
Charms: juju.ApplicationCharmArray{
&juju.ApplicationCharmArgs{
Name: pulumi.String("string"),
Base: pulumi.String("string"),
Channel: pulumi.String("string"),
Revision: pulumi.Float64(0),
},
},
Exposes: juju.ApplicationExposeArray{
&juju.ApplicationExposeArgs{
Cidrs: pulumi.String("string"),
Endpoints: pulumi.String("string"),
Spaces: pulumi.String("string"),
},
},
Machines: pulumi.StringArray{
pulumi.String("string"),
},
Config: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Resources: pulumi.StringMap{
"string": pulumi.String("string"),
},
StorageDirectives: pulumi.StringMap{
"string": pulumi.String("string"),
},
Storages: juju.ApplicationStorageArray{
&juju.ApplicationStorageArgs{
Count: pulumi.Float64(0),
Label: pulumi.String("string"),
Pool: pulumi.String("string"),
Size: pulumi.String("string"),
},
},
Trust: pulumi.Bool(false),
Units: pulumi.Float64(0),
})
var applicationResource = new Application("applicationResource", ApplicationArgs.builder()
.modelUuid("string")
.endpointBindings(ApplicationEndpointBindingArgs.builder()
.space("string")
.endpoint("string")
.build())
.constraints("string")
.charms(ApplicationCharmArgs.builder()
.name("string")
.base("string")
.channel("string")
.revision(0.0)
.build())
.exposes(ApplicationExposeArgs.builder()
.cidrs("string")
.endpoints("string")
.spaces("string")
.build())
.machines("string")
.config(Map.of("string", "string"))
.name("string")
.resources(Map.of("string", "string"))
.storageDirectives(Map.of("string", "string"))
.storages(ApplicationStorageArgs.builder()
.count(0.0)
.label("string")
.pool("string")
.size("string")
.build())
.trust(false)
.units(0.0)
.build());
application_resource = juju.Application("applicationResource",
model_uuid="string",
endpoint_bindings=[{
"space": "string",
"endpoint": "string",
}],
constraints="string",
charms=[{
"name": "string",
"base": "string",
"channel": "string",
"revision": 0,
}],
exposes=[{
"cidrs": "string",
"endpoints": "string",
"spaces": "string",
}],
machines=["string"],
config={
"string": "string",
},
name="string",
resources={
"string": "string",
},
storage_directives={
"string": "string",
},
storages=[{
"count": 0,
"label": "string",
"pool": "string",
"size": "string",
}],
trust=False,
units=0)
const applicationResource = new juju.Application("applicationResource", {
modelUuid: "string",
endpointBindings: [{
space: "string",
endpoint: "string",
}],
constraints: "string",
charms: [{
name: "string",
base: "string",
channel: "string",
revision: 0,
}],
exposes: [{
cidrs: "string",
endpoints: "string",
spaces: "string",
}],
machines: ["string"],
config: {
string: "string",
},
name: "string",
resources: {
string: "string",
},
storageDirectives: {
string: "string",
},
storages: [{
count: 0,
label: "string",
pool: "string",
size: "string",
}],
trust: false,
units: 0,
});
type: juju:Application
properties:
charms:
- base: string
channel: string
name: string
revision: 0
config:
string: string
constraints: string
endpointBindings:
- endpoint: string
space: string
exposes:
- cidrs: string
endpoints: string
spaces: string
machines:
- string
modelUuid: string
name: string
resources:
string: string
storageDirectives:
string: string
storages:
- count: 0
label: string
pool: string
size: string
trust: false
units: 0
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Application resource accepts the following input properties:
- Model
Uuid string - Charms
List<Application
Charm> - The charm installed from Charmhub.
- Config Dictionary<string, string>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- Constraints string
- Endpoint
Bindings List<ApplicationEndpoint Binding> - Configure endpoint bindings
- Exposes
List<Application
Expose> - Makes an application publicly available over the network
- Machines List<string>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - Name string
- Resources Dictionary<string, string>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- Storage
Directives Dictionary<string, string> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- Storages
List<Application
Storage> - Storage used by the application.
- Trust bool
- Set the trust for the application.
- Units double
- The number of application units to deploy for the charm.
- Model
Uuid string - Charms
[]Application
Charm Args - The charm installed from Charmhub.
- Config map[string]string
- Application specific configuration. Must evaluate to a string, integer or boolean.
- Constraints string
- Endpoint
Bindings []ApplicationEndpoint Binding Args - Configure endpoint bindings
- Exposes
[]Application
Expose Args - Makes an application publicly available over the network
- Machines []string
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - Name string
- Resources map[string]string
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- Storage
Directives map[string]string - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- Storages
[]Application
Storage Args - Storage used by the application.
- Trust bool
- Set the trust for the application.
- Units float64
- The number of application units to deploy for the charm.
- model
Uuid String - charms
List<Application
Charm> - The charm installed from Charmhub.
- config Map<String,String>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints String
- endpoint
Bindings List<ApplicationEndpoint Binding> - Configure endpoint bindings
- exposes
List<Application
Expose> - Makes an application publicly available over the network
- machines List<String>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - name String
- resources Map<String,String>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives Map<String,String> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
List<Application
Storage> - Storage used by the application.
- trust Boolean
- Set the trust for the application.
- units Double
- The number of application units to deploy for the charm.
- model
Uuid string - charms
Application
Charm[] - The charm installed from Charmhub.
- config {[key: string]: string}
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints string
- endpoint
Bindings ApplicationEndpoint Binding[] - Configure endpoint bindings
- exposes
Application
Expose[] - Makes an application publicly available over the network
- machines string[]
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - name string
- resources {[key: string]: string}
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives {[key: string]: string} - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
Application
Storage[] - Storage used by the application.
- trust boolean
- Set the trust for the application.
- units number
- The number of application units to deploy for the charm.
- model_
uuid str - charms
Sequence[Application
Charm Args] - The charm installed from Charmhub.
- config Mapping[str, str]
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints str
- endpoint_
bindings Sequence[ApplicationEndpoint Binding Args] - Configure endpoint bindings
- exposes
Sequence[Application
Expose Args] - Makes an application publicly available over the network
- machines Sequence[str]
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - name str
- resources Mapping[str, str]
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage_
directives Mapping[str, str] - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
Sequence[Application
Storage Args] - Storage used by the application.
- trust bool
- Set the trust for the application.
- units float
- The number of application units to deploy for the charm.
- model
Uuid String - charms List<Property Map>
- The charm installed from Charmhub.
- config Map<String>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints String
- endpoint
Bindings List<Property Map> - Configure endpoint bindings
- exposes List<Property Map>
- Makes an application publicly available over the network
- machines List<String>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - name String
- resources Map<String>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives Map<String> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages List<Property Map>
- Storage used by the application.
- trust Boolean
- Set the trust for the application.
- units Number
- The number of application units to deploy for the charm.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- model_
type str - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
Look up Existing Application Resource
Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
charms: Optional[Sequence[ApplicationCharmArgs]] = None,
config: Optional[Mapping[str, str]] = None,
constraints: Optional[str] = None,
endpoint_bindings: Optional[Sequence[ApplicationEndpointBindingArgs]] = None,
exposes: Optional[Sequence[ApplicationExposeArgs]] = None,
machines: Optional[Sequence[str]] = None,
model_type: Optional[str] = None,
model_uuid: Optional[str] = None,
name: Optional[str] = None,
resources: Optional[Mapping[str, str]] = None,
storage_directives: Optional[Mapping[str, str]] = None,
storages: Optional[Sequence[ApplicationStorageArgs]] = None,
trust: Optional[bool] = None,
units: Optional[float] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
resources: _: type: juju:Application get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Charms
List<Application
Charm> - The charm installed from Charmhub.
- Config Dictionary<string, string>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- Constraints string
- Endpoint
Bindings List<ApplicationEndpoint Binding> - Configure endpoint bindings
- Exposes
List<Application
Expose> - Makes an application publicly available over the network
- Machines List<string>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - Model
Type string - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- Model
Uuid string - Name string
- Resources Dictionary<string, string>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- Storage
Directives Dictionary<string, string> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- Storages
List<Application
Storage> - Storage used by the application.
- Trust bool
- Set the trust for the application.
- Units double
- The number of application units to deploy for the charm.
- Charms
[]Application
Charm Args - The charm installed from Charmhub.
- Config map[string]string
- Application specific configuration. Must evaluate to a string, integer or boolean.
- Constraints string
- Endpoint
Bindings []ApplicationEndpoint Binding Args - Configure endpoint bindings
- Exposes
[]Application
Expose Args - Makes an application publicly available over the network
- Machines []string
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - Model
Type string - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- Model
Uuid string - Name string
- Resources map[string]string
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- Storage
Directives map[string]string - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- Storages
[]Application
Storage Args - Storage used by the application.
- Trust bool
- Set the trust for the application.
- Units float64
- The number of application units to deploy for the charm.
- charms
List<Application
Charm> - The charm installed from Charmhub.
- config Map<String,String>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints String
- endpoint
Bindings List<ApplicationEndpoint Binding> - Configure endpoint bindings
- exposes
List<Application
Expose> - Makes an application publicly available over the network
- machines List<String>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - model
Type String - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- model
Uuid String - name String
- resources Map<String,String>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives Map<String,String> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
List<Application
Storage> - Storage used by the application.
- trust Boolean
- Set the trust for the application.
- units Double
- The number of application units to deploy for the charm.
- charms
Application
Charm[] - The charm installed from Charmhub.
- config {[key: string]: string}
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints string
- endpoint
Bindings ApplicationEndpoint Binding[] - Configure endpoint bindings
- exposes
Application
Expose[] - Makes an application publicly available over the network
- machines string[]
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - model
Type string - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- model
Uuid string - name string
- resources {[key: string]: string}
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives {[key: string]: string} - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
Application
Storage[] - Storage used by the application.
- trust boolean
- Set the trust for the application.
- units number
- The number of application units to deploy for the charm.
- charms
Sequence[Application
Charm Args] - The charm installed from Charmhub.
- config Mapping[str, str]
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints str
- endpoint_
bindings Sequence[ApplicationEndpoint Binding Args] - Configure endpoint bindings
- exposes
Sequence[Application
Expose Args] - Makes an application publicly available over the network
- machines Sequence[str]
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - model_
type str - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- model_
uuid str - name str
- resources Mapping[str, str]
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage_
directives Mapping[str, str] - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages
Sequence[Application
Storage Args] - Storage used by the application.
- trust bool
- Set the trust for the application.
- units float
- The number of application units to deploy for the charm.
- charms List<Property Map>
- The charm installed from Charmhub.
- config Map<String>
- Application specific configuration. Must evaluate to a string, integer or boolean.
- constraints String
- endpoint
Bindings List<Property Map> - Configure endpoint bindings
- exposes List<Property Map>
- Makes an application publicly available over the network
- machines List<String>
- Specify the target machines for the application's units. The number of machines in the set indicates the unit count for the application. Removing a machine from the set will remove the application's unit residing on it.
machines
is mutually exclusive withunits
. - model
Type String - The type of the model where the application is deployed. It is a computed field and is needed to determine if the application should be replaced or updated in case of base updates.
- model
Uuid String - name String
- resources Map<String>
- Charm resources. Must evaluate to a string. A resource could be a resource revision number from CharmHub or a custom OCI image resource. Specify a resource other than the default for a charm. Note that not all charms have resources.
- storage
Directives Map<String> - Storage directives (constraints) for the juju application. The map key is the label of the storage defined by the charm, the map value is the storage directive in the form ,,. Changing an existing key/value pair will cause the application to be replaced. Adding a new key/value pair will add storage to the application on upgrade.
- storages List<Property Map>
- Storage used by the application.
- trust Boolean
- Set the trust for the application.
- units Number
- The number of application units to deploy for the charm.
Supporting Types
ApplicationCharm, ApplicationCharmArgs
ApplicationEndpointBinding, ApplicationEndpointBindingArgs
ApplicationExpose, ApplicationExposeArgs
- Cidrs string
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- Endpoints string
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- Spaces string
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
- Cidrs string
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- Endpoints string
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- Spaces string
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
- cidrs String
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- endpoints String
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- spaces String
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
- cidrs string
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- endpoints string
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- spaces string
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
- cidrs str
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- endpoints str
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- spaces str
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
- cidrs String
- A comma-delimited list of CIDRs that should be able to access the application ports once exposed.
- endpoints String
- Expose only the ports that charms have opened for this comma-delimited list of endpoints
- spaces String
- A comma-delimited list of spaces that should be able to access the application ports once exposed.
ApplicationStorage, ApplicationStorageArgs
Import
Applications can be imported using the format: model_uuid:application_name
, for example:
$ pulumi import juju:index/application:Application wordpress abe22490-a845-4a4d-ba52-7ec80a60aff5:wordpress
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- juju juju/terraform-provider-juju
- License
- Notes
- This Pulumi package is based on the
juju
Terraform Provider.