package
0.0.0-20250304205905-b47799d07ddf
Repository: https://github.com/aws/amazon-ssm-agent.git
Documentation: pkg.go.dev

# Constants

ArchHolder represents Place holder for Arch.
No description provided by the author
ChinaS3URL is the s3 URL for regions in China.
CommonS3URL is the s3 URL for regular regions.
CompressedHolder represents Place holder for compress format.
CompressFormat represents the compress format for linux platform.
DarwinBinaryPath is the default path of the amazon-ssm-agent binary on darwin.
DefaultOutputFolder represents default location for storing output files.
DefaultStandErr represents the default file name for update stand error.
DefaultStandOut represents the default file name for update stand output.
DefaultUpdateExecutionTimeoutInSeconds represents default timeout time for execution update related scripts in seconds.
DisableDowngradeCmd represents the command argument for if updater should not downgrade.
downgrade represents that the respective error code was logged during agent downgrade.
No description provided by the author
ErrorAttemptToDowngrade represents An update is attempting to downgrade Ec2Config to a lower version.
ErrorCannotStartService represents Cannot start Ec2Config service.
ErrorCannotStopService represents Cannot stop Ec2Config service.
ErrorCreateInstanceContext represents the error code while loading the initial context.
ErrorCreateUpdateFolder represents error when creating the download directory.
ErrorDownloadManifest represents download manifest error.
ErrorDownloadUpdater represents error when download and unzip the updater.
ErrorEnvironmentIssue represents Unexpected Error.
ErrorExecuteUpdater represents error when execute the updater.
ErrorFailedLinksCheck represents link check failure.
ErrorFailedPrecondition represents An non fulfilled precondition.
ErrorGetLatestActiveVersionManifest represents failure to get latest active version from manifest.
ErrorGetStableVersionS3 represents failure to get the stable version from s3.
ErrorIncompatibleTargetVersion represents Target version is incompatible.
ErrorInitializationFailed represents An update is failed to initialize.
ErrorInstallFailed represents Install failed.
ErrorInstallFailedDueToSigningIssue represents failure to install agent due to signing issue.
ErrorInstallFailureDueToSnapd represents snapd child process bug failure.
ErrorInstTargetVersionNotFoundViaReg represents that the target agent version could not be found using Registry.
ErrorInvalidCertificate represents Installation package file doesn't contain valid certificate.
ErrorInvalidManifest represents Invalid manifest file.
ErrorInvalidManifestLocation represents Invalid manifest file location.
ErrorInvalidPackage represents Installation package file is invalid.
ErrorInvalidSourceVersion represents Source version is not supported.
ErrorInvalidTargetVersion represents Target version is not supported.
ErrorLoadingAgentVersion represents failed for loading agent version.
ErrorManifestURLParse represents manifest url parse error.
ErrorPackageNotAccessible represents Installation package file is not accessible.
ErrorPrepareUpdateCommandSuffix represents exit code when fail to prepare exec.Command to run agent update install script.
ErrorSourcePkgDownload represents source version not able to download.
ErrorTargetPkgDownload represents target version not able to download.
ErrorTimeout represents Installation time-out.
ErrorUnexpected represents Unexpected Error.
ErrorUnexpected represents Unexpected Error from panic.
ErrorUninstallFailed represents Uninstall failed.
ErrorUnsupportedServiceManager represents unsupported service manager.
ErrorUnsupportedVersion represents version less than minimum supported version by OS.
ErrorUpdateFailRollbackSuccess represents rollback succeeded but update process failed.
ErrorUpdaterLockBusy represents message when updater lock is acquired by someone else.
ErrorUsingDpkgSuffix represents exit code from agent update install script dpkg command.
ErrorUsingPkgMgrLegacySuffix represents exit code from agent update install script package manager command This was the exit code in legacy scripts before it was separated to yum/rpm/dpkg/snap.
ErrorUsingSnapSuffix represents exit code from agent update install script snap command.
ErrorUsingYumAndRpmSuffix represents exit code from agent update install script yum and rpm command.
ErrorVersionCompare represents version compare error.
ErrorVersionNotFoundInManifest represents version is not found in the manifest.
ExitCodeErrorPrepareUpdateCommand represents exit code when fail to prepare exec.Command to run agent update install script.
ExitCodeInstallFailedDueToSigningIssue represents exit code when fail to install agent due to signing issue.
ExitCodeUnsupportedPlatform represents exit code when there is no service manager TODO: Move error to a update precondition.
ExitCodeUpdateErrorUsingDpkg represents exit code from agent update install script dpkg command.
ExitCodeUpdateErrorUsingPkgMgrLegacy represents exit code from agent update install script package manager command This was the exit code in legacy scripts before it was separated to yum/rpm/dpkg/snap.
ExitCodeUpdateErrorUsingSnap represents exit code from agent update install script snap command.
ExitCodeUpdateErrorUsingYumAndRpm represents exit code from agent update install script yum and rpm command.
ExitCodeUpdateFailedDueToSnapd represents exit code from agent update install script due to snapd child process validation bug.
FileNameHolder represents Place holder for file name.
HashType represents the default hash type.
installRollback represents rollback code flow occurring during installation.
installer script for linux.
ManifestFile is the manifest file name.
ManifestFileUrlCmd represents the command argument for manifest file url.
MessageIDCmd represents the command argument for message id.
MinimumDiskSpaceForUpdate represents 100 Mb in bytes.
No description provided by the author
OutputBucketNameCmd represents the command argument for output bucket name.
OutputKeyPrefixCmd represents the command argument for output key prefix.
PackageNameCmd represents the command argument for package name.
PackageNameHolder represents Place holder for package name.
PackageVersionHolder represents Place holder for package version.
PipelineTestVersion represents fake version for pipeline tests.
PlatformAlmaLinux represents AlmaLinux.
PlatformAmazonLinux represents amazon linux.
PlatformBottlerocket represents bottlerocket.
PlatformCentOS represents CentOS.
PlatformDarwin represents darwin.
PlatformDebian represents Debian.
PlatformFlatcar represents Flatcar.
PlatformHolder represents Place holder for platform.
PlatformLinux represents linux.
PlatformMacOs represents macOS.
PlatformMacOsX represents macOS for versions before BigSur.
PlatformOracleLinux represents oracle linux.
PlatformRaspbian represents Raspbian.
PlatformRedHat represents RedHat.
PlatformRockyLinux represents Rocky Linux.
PlatformSuse represents SLES(SUSe).
PlatformUbuntu represents Ubuntu.
PlatformUbuntuSnap represents Snap.
PlatformWindows represents windows.
PlatformWindowsNano represents windows nano.
RegionHolder represents Place holder for Region.
SelfUpdateCmd represents the command is generated by self update component.
No description provided by the author
installer script for snap.
No description provided by the author
uninstaller script for snap.
SourceHashCmd represents the command argument for source hash value.
SourceLocationCmd represents the command argument for source location.
SourceVersionCmd represents the command argument for source version.
No description provided by the author
No description provided by the author
StderrFileName represents the command argument for standard error file.
StdoutFileName represents the command argument for standard output file.
TargetHashCmd represents the command argument for target hash value.
TargetLocationCmd represents the command argument for target location.
TargetVersionCmd represents the command argument for target version.
target version resolver options.
target version resolver options.
target version resolver options.
target version resolver options.
uninstaller script for linux.
Directory containing older versions of agent during update.
Directory containing older versions of agent updater during update.
UpdateCmd represents the command argument for update.
UpdateContextFileName represents Update context json file.
we have same below fields in processor package without underscore.
Lock file expiry minutes.
UpdatePluginResultFileName represents Update plugin result file name.
Updater represents Updater name.
UpdaterPackageNamePrefix represents the name of Updater Package.
No description provided by the author
UpstreamServiceName represents the upstream messaging service the command originated from.
verificationRollback represents rollback code flow occurring during verification.
WarnInactiveVersion represents the warning message when inactive version is used for update.
WarnUpdaterLockFail represents warning message that the lock could not be acquired because of system issues.

# Variables

No description provided by the author
NonAlarmingErrors contains error codes which are not important.

# Type aliases

ErrorCode is types of Error Codes.
No description provided by the author
No description provided by the author
error status codes returned from the update scripts Exit code should avoid using 1 - 2, 126 - 165, and 255 Exit code should be causious when using 3 - 7, 64 - 78, and 200 - 245.