Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/image-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
uploadCmd.Flags().String("aws-ami-name", "", "name for the AMI in AWS (only for type=ami)")
uploadCmd.Flags().String("aws-bucket", "", "target S3 bucket name for intermediate storage when creating AMI (only for type=ami)")
uploadCmd.Flags().String("aws-region", "", "target region for AWS uploads (only for type=ami)")
uploadCmd.Flags().String("aws-profile", "", "name of the AWS credentials profile (only for type=aws)")
uploadCmd.Flags().StringArray("aws-tag", []string{}, "tag the AMI with this Key=Value (only for type=aws)")
uploadCmd.Flags().String("libvirt-connection", "", "connection URI (only for type=libvirt)")
uploadCmd.Flags().String("libvirt-pool", "", "pool name (only for type=libvirt)")
Expand Down
5 changes: 5 additions & 0 deletions cmd/image-builder/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func uploaderForCmdAWS(cmd *cobra.Command, targetArchStr string, bootMode *platf
if err != nil {
return nil, err
}
profile, err := cmd.Flags().GetString("aws-profile")
if err != nil {
return nil, err
}
tags, err := cmd.Flags().GetStringArray("aws-tag")
if err != nil {
return nil, err
Expand Down Expand Up @@ -156,6 +160,7 @@ func uploaderForCmdAWS(cmd *cobra.Command, targetArchStr string, bootMode *platf
TargetArch: targetArch,
BootMode: bootMode,
Tags: slicedTags,
Profile: profile,
}

return awscloudNewUploader(region, bucketName, amiName, opts)
Expand Down
Loading