1. Packages
  2. Pulumi Nuage
  3. API Docs
  4. aws
  5. Image
nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio

nuage.aws.Image

Explore with Pulumi AI

nuage logo
nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio

    Provides a resource to manage build and deployment of Docker builds. It automatically builds the Docker image and pushes it to the specified repository.

    Example Usage

    Basic Example

    Coming soon!

    Coming soon!

    Coming soon!

    import pulumi_nuage as nuage
    
    repository = nuage.aws.Repository(
        "foo",
        name="repository",
        expire_in_days=30,
    )
    
    image = nuage.aws.Image(
        "foo",
        dockerfile="../api/Dockerfile",
        context="../",
        repository_url=repository.url,
    )
    

    Coming soon!

    Coming soon!

    Create Image Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Image(name: string, args: ImageArgs, opts?: CustomResourceOptions);
    @overload
    def Image(resource_name: str,
              args: ImageArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Image(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              dockerfile: Optional[str] = None,
              repository_url: Optional[str] = None,
              architecture: Optional[str] = None,
              context: Optional[str] = None,
              target: Optional[str] = None)
    func NewImage(ctx *Context, name string, args ImageArgs, opts ...ResourceOption) (*Image, error)
    public Image(string name, ImageArgs args, CustomResourceOptions? opts = null)
    public Image(String name, ImageArgs args)
    public Image(String name, ImageArgs args, CustomResourceOptions options)
    
    type: nuage:aws:Image
    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 ImageArgs
    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 ImageArgs
    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 ImageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var imageResource = new Nuage.Aws.Image("imageResource", new()
    {
        Dockerfile = "string",
        RepositoryUrl = "string",
        Architecture = "string",
        Context = "string",
        Target = "string",
    });
    
    example, err := aws.NewImage(ctx, "imageResource", &aws.ImageArgs{
    	Dockerfile:    pulumi.String("string"),
    	RepositoryUrl: pulumi.String("string"),
    	Architecture:  pulumi.String("string"),
    	Context:       pulumi.String("string"),
    	Target:        pulumi.String("string"),
    })
    
    var imageResource = new Image("imageResource", ImageArgs.builder()        
        .dockerfile("string")
        .repositoryUrl("string")
        .architecture("string")
        .context("string")
        .target("string")
        .build());
    
    image_resource = nuage.aws.Image("imageResource",
        dockerfile="string",
        repository_url="string",
        architecture="string",
        context="string",
        target="string")
    
    const imageResource = new nuage.aws.Image("imageResource", {
        dockerfile: "string",
        repositoryUrl: "string",
        architecture: "string",
        context: "string",
        target: "string",
    });
    
    type: nuage:aws:Image
    properties:
        architecture: string
        context: string
        dockerfile: string
        repositoryUrl: string
        target: string
    

    Image Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Image resource accepts the following input properties:

    Dockerfile string
    The path to the Dockerfile to use.
    RepositoryUrl string
    Url of the repository.
    Architecture string
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    Context string
    The path to the build context to use.
    Target string
    The target of the Dockerfile to build
    Dockerfile string
    The path to the Dockerfile to use.
    RepositoryUrl string
    Url of the repository.
    Architecture string
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    Context string
    The path to the build context to use.
    Target string
    The target of the Dockerfile to build
    dockerfile String
    The path to the Dockerfile to use.
    repositoryUrl String
    Url of the repository.
    architecture String
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    context String
    The path to the build context to use.
    target String
    The target of the Dockerfile to build
    dockerfile string
    The path to the Dockerfile to use.
    repositoryUrl string
    Url of the repository.
    architecture string
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    context string
    The path to the build context to use.
    target string
    The target of the Dockerfile to build
    dockerfile str
    The path to the Dockerfile to use.
    repository_url str
    Url of the repository.
    architecture str
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    context str
    The path to the build context to use.
    target str
    The target of the Dockerfile to build
    dockerfile String
    The path to the Dockerfile to use.
    repositoryUrl String
    Url of the repository.
    architecture String
    Architecture, either X86_64 or ARM64. Defaults to X86_64
    context String
    The path to the build context to use.
    target String
    The target of the Dockerfile to build

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Image resource produces the following output properties:

    Name string
    Name of the docker image.
    Uri string
    Image uri of the docker image.
    Name string
    Name of the docker image.
    Uri string
    Image uri of the docker image.
    name String
    Name of the docker image.
    uri String
    Image uri of the docker image.
    name string
    Name of the docker image.
    uri string
    Image uri of the docker image.
    name str
    Name of the docker image.
    uri str
    Image uri of the docker image.
    name String
    Name of the docker image.
    uri String
    Image uri of the docker image.

    Package Details

    Repository
    nuage
    License
    Apache-2.0
    nuage logo
    nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio