get Image
The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.EcrFunctions;
import com.pulumi.aws.ecr.inputs.GetImageArgs;
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) {
final var serviceImage = EcrFunctions.getImage(GetImageArgs.builder()
.imageTag("latest")
.repositoryName("my/service")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getImage.
Parameters
argument
A collection of arguments for invoking getImage.
suspend fun getImage(imageDigest: String? = null, imageTag: String? = null, registryId: String? = null, repositoryName: String): GetImageResult
Return
A collection of values returned by getImage.
See also
Parameters
image Digest
Sha256 digest of the image manifest. At least one of image_digest
or image_tag
must be specified.
image Tag
Tag associated with this image. At least one of image_digest
or image_tag
must be specified.
registry Id
ID of the Registry where the repository resides.
repository Name
Name of the ECR Repository.
Return
A collection of values returned by getImage.
See also
Parameters
argument
Builder for com.pulumi.aws.ecr.kotlin.inputs.GetImagePlainArgs.