nuage.aws.Image
Explore with Pulumi AI
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)
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.
Constructor 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.
- Repository
Url string - Url of the repository.
- Architecture string
- Architecture, either
X86_64
orARM64
. Defaults toX86_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.
- Repository
Url string - Url of the repository.
- Architecture string
- Architecture, either
X86_64
orARM64
. Defaults toX86_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.
- repository
Url String - Url of the repository.
- architecture String
- Architecture, either
X86_64
orARM64
. Defaults toX86_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.
- repository
Url string - Url of the repository.
- architecture string
- Architecture, either
X86_64
orARM64
. Defaults toX86_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
orARM64
. Defaults toX86_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.
- repository
Url String - Url of the repository.
- architecture String
- Architecture, either
X86_64
orARM64
. Defaults toX86_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:
Package Details
- Repository
- nuage
- License
- Apache-2.0