Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
7b9d4879
Commit
7b9d4879
authored
Jun 25, 2015
by
Clint
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2316 from jjappi/fix-aws-tagging
Fix failing AMI snapshot tagging when copying to other regions.
parents
d5c17734
c537623b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
builder/amazon/common/step_create_tags.go
builder/amazon/common/step_create_tags.go
+6
-6
No files found.
builder/amazon/common/step_create_tags.go
View file @
7b9d4879
...
...
@@ -34,8 +34,13 @@ func (s *StepCreateTags) Run(state multistep.StateBag) multistep.StepAction {
// Declare list of resources to tag
resourceIds
:=
[]
*
string
{
&
ami
}
regionconn
:=
ec2
.
New
(
&
aws
.
Config
{
Credentials
:
ec2conn
.
Config
.
Credentials
,
Region
:
region
,
})
// Retrieve image list for given AMI
imageResp
,
err
:=
ec2
conn
.
DescribeImages
(
&
ec2
.
DescribeImagesInput
{
imageResp
,
err
:=
region
conn
.
DescribeImages
(
&
ec2
.
DescribeImagesInput
{
ImageIDs
:
resourceIds
,
})
...
...
@@ -63,11 +68,6 @@ func (s *StepCreateTags) Run(state multistep.StateBag) multistep.StepAction {
}
}
regionconn
:=
ec2
.
New
(
&
aws
.
Config
{
Credentials
:
ec2conn
.
Config
.
Credentials
,
Region
:
region
,
})
_
,
err
=
regionconn
.
CreateTags
(
&
ec2
.
CreateTagsInput
{
Resources
:
resourceIds
,
Tags
:
ec2Tags
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment