Commit Graph

924 Commits (90fb09e52a2558c59eaf87a3adabcb3b59cd1d8d)

Author SHA1 Message Date
Adrien Delorme a4bd744955 simplify things a bit more
6 years ago
Adrien Delorme aef3d24213 Update step_create_ssm_tunnel.go
6 years ago
Adrien Delorme f329cb5b93 simplify code
6 years ago
Adrien Delorme b058de072a move packer/builder/amazon/common.IsAWSErr to builder/amazon/common/awserrors.Matches
6 years ago
Adrien Delorme 8e355d0fe7 Move ssm code to its own ssm package and make it singlethreaded
6 years ago
Wilken Rivera 646b973bd3 Remove logic to retry a connection that reuses an existing SSM Session
6 years ago
Wilken Rivera dff9cde775 Remove waitgroups
6 years ago
Wilken Rivera eb11009e2a Check for closed channels as opposed to using a separate closeRetry channel
6 years ago
sylviamoss aa73cc7d7e add close chan to avoid unwanted retries
6 years ago
sylviamoss 1f62249097 add retry terminated session chan
6 years ago
sylviamoss 8e3f3e514c improve logs
6 years ago
sylviamoss b2c7897f58 add WaitGroup to avoid data race
6 years ago
sylviamoss 1c2b469acd add retry channel to ssm driver
6 years ago
Megan Marsh b8e6e2c081
Merge pull request #10085 from 10000coins/f-aws-tenancy
6 years ago
Evan Pipho 608307cd1e Re-allow spot + tenancy. Validate tenancy is set to a usable value
6 years ago
Evan Pipho d5d1a8708e Add tests for Tenancy vs Spot Price
6 years ago
Evan Pipho 6967e02103 Add support for source instance tenancy to amazon builders
6 years ago
Matt Rogers 15f97421e2
builder/amazon: Add io2 as a supported volume type
6 years ago
Megan Marsh 4c0ac6917e switch to using aws base config, which means we're using code tested and maitnained by the terraform crowd.
6 years ago
Sylvia Moss 96e3def294
Add pause_before_ssm config to pause before establishing the Session Manager session (#9988)
6 years ago
Megan Marsh d66b358100
Merge pull request #9991 from hashicorp/b-amazon-ssm-infinite-loop
6 years ago
Wilken Rivera 2f2b5683a2 amazon/ssm_driver: Update log polling logic
6 years ago
Megan Marsh 429d431365 Implement assume_role for Packer. This functionality is copied shamelessly
6 years ago
Sylvia Moss d347bbec4c
Retry fleet creating only on invalid IAM instance profile (#9946)
6 years ago
Adrien Delorme 0d0bd9ce75
name fields of PolicyDocument correctly in HCL (#9812)
6 years ago
Adrien Delorme a0c09e85df
retry spot instance creation when an "Invalid IAM Instance Profile name" error pops up (#9810)
6 years ago
sylviamoss 1a0d5a93ee fix max_attempts typo
6 years ago
sylviamoss 788dc32598 add aws_polling config option to override env variables
6 years ago
Megan Marsh 8b4993e44c
fix docs for kms key ids (#9766)
6 years ago
Megan Marsh 54469c4728
Add all of the custom AWS template engines to GeneratedData for use b… (#9751)
6 years ago
Megan Marsh f9df185ef1
Merge pull request #9579 from hashicorp/fix_9562
6 years ago
Megan Marsh a56942d3c7 change isAwsErr to an exported func so I can use it in other aws modules.
6 years ago
Adrien Delorme 810f161d22 builder/amazon/common/block_device.go: replace tabs with words
6 years ago
Adrien Delorme 966b17d2b5 builder/amazon/common/access_config.go: replace tabs with words
6 years ago
Adrien Delorme 5c4901c2c2 builder/amazon/common/run_config.go: replace tabs with words
6 years ago
Adrien Delorme 1455a29f2b remove tabs for security_group_filter too
6 years ago
Adrien Delorme 191094edcc better `disable_stop_instance` docs
6 years ago
Megan Marsh 530f5e3f63 more additions to partials
6 years ago
Megan Marsh a1651977b3 add tabs to generated docs from access_config and run_config structs
6 years ago
Megan Marsh 4d3b2cea96
Merge pull request #9480 from adongy/master
6 years ago
Megan Marsh a885e620ee don't error for no mappings if no mappings were set.
6 years ago
Megan Marsh 122e80f591 generated code
6 years ago
Megan Marsh 0122530a07 make statement an array of strings
6 years ago
Anthony Dong 2322d3ae6b aws: retry fetching blockdevicemapping if empty
6 years ago
Wilken Rivera a8dfb66d6c docs/builder/amazon: Add WinRM unsupported note to Session Manager docs
6 years ago
Adrien Delorme 40947c2bf6
HCL2: generate hcl tags with go-cty tags too (#9306)
6 years ago
nitrocode 6d29ec956b Added SourceAMICreationDate
6 years ago
Wilken Rivera b5639d4697
tests/builder/amazon: Enhance the test coverage for SSM Tunnel related steps (#9213)
6 years ago
Wilken Rivera 6f5f6bf999 builder/amazon Fix invalid pointer issue for non SSMAgengtEnabled builds
6 years ago
Wilken Rivera 89fb7bb080 Apply suggestions from code review
6 years ago
Wilken Rivera 056f1f6e76 docs/amazon/builder: Add not about using a temporary_iam_instance_profile_policy_document
6 years ago
Wilken Rivera bf1da57a05 Update address to localhost to be consistent with other proxies
6 years ago
Wilken Rivera 7cea7466ba buider/amazon: Add `session_manager_port` option for setting a custom local port
6 years ago
Wilken Rivera 0d13c634b7 Update logging constructs for Session Manger driver
6 years ago
Wilken Rivera 81c40b8d08 Add section to docs about the session-manager-plugin tunnel
6 years ago
Wilken Rivera 5f68303504 Remove no longer needed port check
6 years ago
Wilken Rivera 3ae7ab994b step_create_ssm_tunnel: Add port availability check for LocalPortNumber
6 years ago
Wilken Rivera 08dc2cb847 Remove call to unstubbed session start
6 years ago
Wilken Rivera f498866c3a Update validation for session_manager connectivity
6 years ago
Wilken Rivera 2f09b74587 amazon/builder: Move port validation for security group into RunConfig.Prepare
6 years ago
Wilken Rivera 743df19af2 Add tests for driver and ssm tunnel step
6 years ago
Wilken Rivera e53d6aea66 amazon/ssm_driver: Update to support command context
6 years ago
Wilken Rivera 5e14089851 tests/builder/amazon: Add basic testing for session_manager
6 years ago
Wilken Rivera 60e0ba7e68 Update iam instance profile name
6 years ago
Wilken Rivera e515aefee3 Add validation checks for session_manager
6 years ago
Wilken Rivera c1d2477d18 builder/amzon: Update port configuration for WinRM
6 years ago
Wilken Rivera fbffbd1899 docs/builder/amazon: Add short blurb for connecting via the AWS session_manager interface
6 years ago
Wilken Rivera 520061dee6 builder/amazon: Update Session Manger connectivity
6 years ago
Wilken Rivera 3dd46eb5f4 Add PoC of connectivity using session-manager-plugin
6 years ago
Wilken Rivera 16604373ac initial ssm tunnel changes - not working
6 years ago
Megan Marsh f0d2680426
remove spot_price_auto_product from docs (#9173)
6 years ago
Adrien Delorme 73242e8de4 make sure keyvalue and namevalue filters are using the same naming as the service being used
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Jeff Escalante 9165be87da
packer.io prefix removal, html extension remove for in-code errors
6 years ago
Jeff Escalante 4afd107eeb
patch source files for extensions changes
6 years ago
Megan Marsh 8ae6256c03 add test of NoEphemeral
6 years ago
Megan Marsh fc36a37db8 only set NoDevice if NoEphemeral is set; otherwise, legit block device mappings get destroyed
6 years ago
Adrien Delorme fab344a1fc Update ami_config.go
6 years ago
Adrien Delorme b5e8750f5f Change key/value to name/value to remain consistent with Terraform
6 years ago
Adrien Delorme 3cae1a81ef up tests
6 years ago
Adrien Delorme d532bb376c wip
6 years ago
Adrien Delorme c845436e32 KeyValues.CopyOn: make sure a receiving nil map is set too
6 years ago
Adrien Delorme e1c84806cc rewrap
6 years ago
Adrien Delorme fc837e3698 Update run_config.go
6 years ago
Adrien Delorme ce8d3d3747 wip
6 years ago
Adrien Delorme dab689ce2e WIP
6 years ago
Adrien Delorme dbb4981d66 WIP
6 years ago
Adrien Delorme 6e6490d688 WIP
6 years ago
Adrien Delorme 260dc59500 use the hcl2template.KVFilter where we can
6 years ago
Wilken Rivera 7b705545d9
docs: Various doc clean-ups to fix code block formatting and syntax highlighting (#8868)
6 years ago
Megan Marsh 4133acbdf3 update spot price docs
6 years ago
Wilken Rivera e1a46ec293
Fix gosimple S1025 linting errors (#8838)
6 years ago
Megan Marsh dde74232f2
Clearly document all template-engine-enabled options (#8770)
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Adrien Delorme 7d5f0c11af add max_retries option to aws builders
6 years ago
Wilken Rivera a1d9ba0e32
Merge pull request #8699 from fly1028/fix-instance-running-timeout
6 years ago
Patrick Ng e5e5fd1198 Instance Running waiter not aware of global waiter settings
6 years ago
Megan Marsh d252a24b82 allow user to set winrm_host override like we do ssh_host override
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
nywilken d2a9e6b32e Format code with `gofmt -s -w`
6 years ago